Skip to content

Commit

Permalink
fix : 로그 파일 크기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river committed Nov 2, 2024
1 parent 970df77 commit de31873
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KUA/KUA/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'class': 'logging.handlers.RotatingFileHandler', # RotatingFileHandler로 변경
'filename': 'scheduler.log',
'maxBytes': 10 * 1024 * 1024, # 10MB로 제한
'backupCount': 5, # 최대 5개의 백업 파일 유지
},
},
'loggers': {
Expand Down

0 comments on commit de31873

Please sign in to comment.