Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove duplicate timestamp from test logs (_trial_temp/test.log)
Browse files Browse the repository at this point in the history
Fix #15618
  • Loading branch information
MadLittleMods committed May 19, 2023
1 parent 3033e9d commit 18ebc9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_utils/logging_setup.py
Expand Up @@ -40,10 +40,9 @@ def setup_logging() -> None:
"""
root_logger = logging.getLogger()

log_format = (
"%(asctime)s - %(name)s - %(lineno)d - "
"%(levelname)s - %(request)s - %(message)s"
)
# We exclude `%(asctime)s` from this format because the Twisted logger adds its own
# timestamp
log_format = "%(name)s - %(lineno)d - " "%(levelname)s - %(request)s - %(message)s"

handler = ToTwistedHandler()
formatter = logging.Formatter(log_format)
Expand Down

0 comments on commit 18ebc9a

Please sign in to comment.