Skip to content

Commit d11de4f

Browse files
committed
Redcude maxiumum log sizes before archival.
1 parent b81024c commit d11de4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def create_logger() -> logger:
8383
logger.add(
8484
"/var/log/api/info.json",
8585
format=json_formatter,
86-
rotation="200 MB",
86+
rotation="20 MB",
8787
level="TRACE",
8888
compression="zip",
8989
)
@@ -94,7 +94,7 @@ def create_logger() -> logger:
9494
catch=True,
9595
level="TRACE",
9696
format=log_formatter,
97-
rotation="200 MB",
97+
rotation="20 MB",
9898
compression="zip",
9999
)
100100
else:
@@ -103,7 +103,7 @@ def create_logger() -> logger:
103103
colorize=True,
104104
catch=True,
105105
format=log_formatter,
106-
rotation="200 MB",
106+
rotation="20 MB",
107107
compression="zip",
108108
level="ERROR",
109109
)

0 commit comments

Comments
 (0)