I believe the appropriate response here is to return after this debug statement rather than dropping through to the next conditional. (Or change the next conditional from 'if' to 'elif'.)
|
# We cannot subscribe to the log group that our stdout/err goes to. |
|
if context.log_group_name == log_group_name: |
|
logger.debug("Skipping our own log group name...") |
|
# And we do not want to subscribe to other Humio log ingesters - if there are any. |
|
if "HumioCloudWatchLogsIngester" in log_group_name: |
I believe the appropriate response here is to return after this debug statement rather than dropping through to the next conditional. (Or change the next conditional from 'if' to 'elif'.)
cloudwatch2humio/src/helpers.py
Lines 108 to 112 in 93eb520