Skip to content

Commit

Permalink
Removes unused logging handler (microsoft#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
markwaddle authored Oct 16, 2024
1 parent 36e3caf commit 954991f
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ def process_log_record(self, log_record):
return log_record


class JSONHandler(logging.StreamHandler):
def __init__(self, max_message_length: int):
super().__init__()
self.setFormatter(
CustomJSONFormatter(
"%(name)s %(filename)s %(module)s %(lineno)s %(levelname)s %(correlation_id)s %(message)s",
timestamp=True,
max_message_length=max_message_length,
)
)


class DebugLevelForNoisyLogFilter(logging.Filter):
"""Lowers log level to DEBUG for logs that match specific logger names and message patterns."""

Expand Down

0 comments on commit 954991f

Please sign in to comment.