mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-04-19 12:43:55 +02:00
Fix logs incorrect formatting
This commit is contained in:
parent
ebc454f7a2
commit
9a6d08d2e1
@ -30,7 +30,7 @@ class LogEntry(Enum):
|
||||
|
||||
|
||||
def add_entry(entry: str) -> None:
|
||||
date = datetime.now().strftime('%y-%b-%Y %H:%M:%S')
|
||||
date = datetime.now().strftime('%d-%b-%Y %H:%M:%S')
|
||||
|
||||
with open(log_file, 'a', encoding="utf8") as f:
|
||||
f.write(f"[{date}] {entry}\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user