Skip to content

Commit

Permalink
revert a change from previous
Browse files Browse the repository at this point in the history
  • Loading branch information
Miro Metsänheimo committed Feb 22, 2024
1 parent 032ef09 commit d8c559a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docsbox/logs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ def log(self, level, msg, request=None, extra= None, *args, **kwargs):
kwargs["extra"]["request"]= '%s - "%s"' % (request.method, request.path)
if extra and isinstance(extra, dict):
kwargs["extra"].update(extra)
if level >= logging.ERROR:
self.logger.error(level, msg, *args, **kwargs)
else:
self.logger.log(level, msg, *args, **kwargs)
self.logger.log(level, msg, *args, **kwargs)


class GelfHTTPHandler(BaseGELFHandler, logging.Handler):
Expand Down

0 comments on commit d8c559a

Please sign in to comment.