Skip to content

Commit 880b75f

Browse files
authored
Merge pull request #626 from maykinmedia/issue/619-celery-log-problems
🐛 [#619] fix duplicate logs and only show structured logs
2 parents 18e36f5 + b1b457a commit 880b75f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/objects/conf/base.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,6 @@
239239
"class": "logging.StreamHandler",
240240
"formatter": "db",
241241
},
242-
"celery_console": {
243-
"level": CELERY_LOGLEVEL,
244-
"class": "logging.StreamHandler",
245-
"formatter": "timestamped",
246-
},
247-
"celery_file": {
248-
"level": CELERY_LOGLEVEL,
249-
"class": "logging.handlers.RotatingFileHandler",
250-
"filename": Path(LOGGING_DIR) / "celery.log",
251-
"formatter": "verbose",
252-
"maxBytes": 1024 * 1024 * 10, # 10 MB
253-
"backupCount": 10,
254-
},
255242
# replaces the "django" and "project" handlers - in containerized applications
256243
# the best practices is to log to stdout (use the console handler).
257244
"json_file": {
@@ -350,11 +337,6 @@
350337
"level": "INFO",
351338
"propagate": False,
352339
},
353-
"celery": {
354-
"handlers": ["celery_console"] if LOG_STDOUT else ["celery_file"],
355-
"level": CELERY_LOGLEVEL,
356-
"propagate": True,
357-
},
358340
},
359341
}
360342

0 commit comments

Comments
 (0)