Skip to content

Commit

Permalink
Change logfile name
Browse files Browse the repository at this point in the history
1. Remove dividers - these are unnecessary and the colon causes problems (#2969)
2. Switch order from month,day,year to year,month,day. This ensures correct collation when sorted
  • Loading branch information
rotu authored and patrickelectric committed Oct 20, 2024
1 parent 42b23af commit c231098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/libs/commonwealth/commonwealth/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_new_log_path(service_name: str) -> Path:
service_log_folder.mkdir(parents=True, exist_ok=True)

# Returned log path are service-specific and store datetime information
datetime_now = datetime.now().strftime("%m-%d-%Y_%H:%M:%S")
datetime_now = datetime.now().strftime("%Y%m%d_%H%M%S")
return service_log_folder.joinpath(f"logfile_{datetime_now}.log")


Expand Down

0 comments on commit c231098

Please sign in to comment.