Skip to content

Commit 639ffb5

Browse files
author
Artem Krivonos
committed
format
1 parent 8765d53 commit 639ffb5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

awslambdaric/bootstrap.py

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def replace_line_indentation(line, indent_char, new_indent_char):
110110

111111

112112
if _AWS_LAMBDA_LOG_FORMAT == _JSON_FORMAT:
113+
113114
def log_error(error_result, log_sink):
114115
error_result = {
115116
"timestamp": time.strftime(
@@ -123,6 +124,7 @@ def log_error(error_result, log_sink):
123124
)
124125

125126
else:
127+
126128
def log_error(error_result, log_sink):
127129
error_description = "[ERROR]"
128130

awslambdaric/lambda_runtime_log_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _get_log_format_from_str(value: str):
6161

6262
class JsonFormatter(logging.Formatter):
6363
def __init__(self):
64-
super().__init__(datefmt=_DATETIME_FORMAT, validate=False)
64+
super().__init__(datefmt=_DATETIME_FORMAT)
6565

6666
@staticmethod
6767
def format_stacktrace(exc_info):

0 commit comments

Comments
 (0)