Skip to content

Commit 053ef44

Browse files
authored
Ignore non-utf8 characters (#501)
* Ignore non-utf8 characters * lint
1 parent aff498c commit 053ef44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/logs_monitoring/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def s3_handler(event, context, metadata):
200200
else:
201201
# Check if using multiline log regex pattern
202202
# and determine whether line or pattern separated logs
203-
data = data.decode("utf-8")
203+
data = data.decode("utf-8", errors="ignore")
204204
if DD_MULTILINE_LOG_REGEX_PATTERN and multiline_regex_start_pattern.match(data):
205205
split_data = multiline_regex.split(data)
206206
else:

0 commit comments

Comments
 (0)