Skip to content

Commit

Permalink
BE: logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
andreipradan committed Dec 3, 2024
1 parent 052c329 commit b393862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainframe/clients/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def emit(self, record: logging.LogRecord) -> None:

def get_default_logger(name):
logger = logging.getLogger(name)
if settings.ENV in ("local",) and not logger.handlers:
if settings.ENV in ("prod", "rpi") and not logger.handlers:
client = axiom_py.Client()
logger.addHandler(MainframeHandler(client, "mainframe"))
return logger

0 comments on commit b393862

Please sign in to comment.