Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
updated logger filters
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-turbitt committed Jul 25, 2022
1 parent 39c97fd commit 47f6cd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions telco_churn/utils/logger_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

class NoReceivedCommandFilter(logging.Filter):
def filter(self, record):
return not record.getMessage().startswith('Received command c')
if 'Received command c' not in record.getMessage():
return record.getMessage()


class NoPythonDotEnvFilter(logging.Filter):
def filter(self, record):
return not record.getMessage().startswith('Python-dotenv')
if 'Python-dotenv' not in record.getMessage():
return record.getMessage()


def get_logger():
Expand Down

0 comments on commit 47f6cd8

Please sign in to comment.