Skip to content

Commit

Permalink
Declutter log output
Browse files Browse the repository at this point in the history
Only show the filename instead of it's full path.
  • Loading branch information
kwk committed Jul 31, 2024
1 parent 9aa3bfc commit fab81c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot_manager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():

logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] %(levelname)s [%(pathname)s:%(lineno)d %(funcName)s] %(message)s",
format="[%(asctime)s] %(levelname)s [%(filename)s:%(lineno)d %(funcName)s] %(message)s",
datefmt="%d/%b/%Y %H:%M:%S",
stream=sys.stderr,
)
Expand Down

0 comments on commit fab81c8

Please sign in to comment.