Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316048

Change subject: Send celery logs to /srv/logs/ores/app.log
......................................................................

Send celery logs to /srv/logs/ores/app.log

Bug: T147898
Change-Id: Iaf7d1335c5ad983355f75e02570c4cab7532a8cb
---
M config/00-main.yaml
M logging_config.yaml
2 files changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/ores/deploy 
refs/changes/48/316048/1

diff --git a/config/00-main.yaml b/config/00-main.yaml
index 48454b4..cc1c316 100644
--- a/config/00-main.yaml
+++ b/config/00-main.yaml
@@ -75,7 +75,7 @@
     CELERYD_MAX_TASKS_PER_CHILD: 100
     timeout: 15 # seconds
     queue_maxsize: 100 # pending tasks
-
+    CELERYD_HIJACK_ROOT_LOGGER: FALSE
 
 # Scorers
 scoring_contexts:
diff --git a/logging_config.yaml b/logging_config.yaml
index 9fdac18..f38b247 100644
--- a/logging_config.yaml
+++ b/logging_config.yaml
@@ -3,19 +3,24 @@
 loggers:
   revscoring:
     level: ERROR
-    handlers: [stdout]
+    handlers: [file]
   ores:
     level: ERROR
-    handlers: [stdout]
+    handlers: [file]
   celery:
     level: ERROR
-    handlers: [stdout]
+    handlers: [file]
 
 handlers:
   stdout:
     class: logging.StreamHandler
     formatter: basic_human
     stream: ext://sys.stdout
+  file:
+    class: logging.handlers.TimedRotatingFileHandler
+    filename: /srv/logs/ores/app.log
+    when: midnight
+    backupCount: 7
 
 formatters:
   basic_human: 

-- 
To view, visit https://gerrit.wikimedia.org/r/316048
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf7d1335c5ad983355f75e02570c4cab7532a8cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/ores/deploy
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to