We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b45577e commit f2bbb3aCopy full SHA for f2bbb3a
awslambdaric/lambda_runtime_client.py
@@ -3,9 +3,15 @@
3
"""
4
5
import sys
6
+import logging
7
+
8
from awslambdaric import __version__
9
from .lambda_runtime_exception import FaultException
10
11
+logging.basicConfig(
12
+ format="%(asctime)s %(levelname)s %(name)s %(threadName)s : %(message)s",
13
+ level=logging.INFO,
14
+)
15
16
def _user_agent():
17
py_version = (
@@ -19,8 +25,9 @@ def _user_agent():
19
25
import runtime_client
20
26
21
27
runtime_client.initialize_client(_user_agent())
22
-except ImportError:
23
- runtime_client = None
28
+except ImportError as import_error:
29
+ logging.fatal('Failed to import "runtime_client" module. %s', import_error)
30
+ raise import_error
24
31
32
from .lambda_runtime_marshaller import LambdaMarshaller
33
0 commit comments