Skip to content

Commit e02f6cf

Browse files
committed
add in some debug info on linked libraries in libgdal
1 parent d602d16 commit e02f6cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python/lambda/lambda_function.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import subprocess
23
import sys
34
import logging
45

@@ -19,6 +20,14 @@ def lambda_handler(event, context=None):
1920
""" Lambda handler """
2021
logger.debug(event)
2122

23+
# this try block is for testing and info only, it can be safely removed
24+
# it prints out info on the linked libraries found in libgdal
25+
try:
26+
output = subprocess.check_output('ldd /opt/lib/libgdal.so'.split(' '))
27+
logger.info(output.decode())
28+
except Exception as e:
29+
pass
30+
2231
# process event payload and do something like this
2332
fname = event.get('filename', test_filename)
2433
fname = fname.replace('s3://', '/vsis3/')

0 commit comments

Comments
 (0)