Skip to content

Commit

Permalink
fixup! fix(aws): Remove none extracted value by regex
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
  • Loading branch information
ViBiOh committed Nov 22, 2024
1 parent 2a62cd1 commit c158c3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aws/logs_monitoring/steps/handlers/s3_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ def _extract_other_logs(self):
self.data_store.data = self.data_store.data.decode("utf-8", errors="ignore")

if self.multiline_regex_start_pattern.match(self.data_store.data):
self.data_store.data = [
item
for item in self.multiline_regex_pattern.split(self.data_store.data)
if item is not None
]
self.data_store.data = list(
filter(
None, self.multiline_regex_pattern.split(self.data_store.data)
)
)
else:
self.logger.debug(
"DD_MULTILINE_LOG_REGEX_PATTERN %s did not match start of file, splitting by line",
Expand Down

0 comments on commit c158c3c

Please sign in to comment.