Skip to content

Commit

Permalink
Change logging filemode to 'x'
Browse files Browse the repository at this point in the history
No two files should have the same name, but this will ensure a fail instead of truncating a previous log
  • Loading branch information
skyfenton committed Nov 25, 2024
1 parent 108bf5b commit ece2729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediabridge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main(
filename=OUTPUT_DIR.joinpath(
f"mb_{datetime.now().strftime('%Y%m%d_%H%M%S')}.log"
),
filemode="w",
filemode="x",
format="%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s",
datefmt="%H:%M:%S",
)
Expand Down

0 comments on commit ece2729

Please sign in to comment.