Hashar has uploaded a new change for review.

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

Change subject: zuul: debug gear.Server
......................................................................

zuul: debug gear.Server

The internal class gear.Server logs interesting message at debug level,
log them down to /var/log/zuul/gearman-server-debug.log with a few days
of archives.

While at it add vim modeline and some comments to let me better read the
file.

Applied in production manually.

Change-Id: Idda66be684a568050cae2f4fb9739d09564b48a2
---
M modules/zuul/files/gearman-logging.conf
1 file changed, 25 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/81/165481/1

diff --git a/modules/zuul/files/gearman-logging.conf 
b/modules/zuul/files/gearman-logging.conf
index 9b89f3f..7750fe9 100644
--- a/modules/zuul/files/gearman-logging.conf
+++ b/modules/zuul/files/gearman-logging.conf
@@ -1,11 +1,19 @@
+#####################################################################
+### THIS FILE IS MANAGED BY PUPPET
+### puppet:///files/zuul/gearman-logging.conf
+#####################################################################
+# vim: set filetype=dosini:
+
 [loggers]
-keys=root,gear
+keys=root,gear,gearsrv
 
 [handlers]
-keys=console,normal
+keys=console,normal,srvdebug
 
 [formatters]
 keys=simple
+
+#################################################################
 
 [logger_root]
 level=WARNING
@@ -16,18 +24,33 @@
 handlers=normal
 qualname=gear
 
+[logger_gearsrv]
+level=DEBUG
+handlers=srvdebug
+qualname=gear.Server
+
+#################################################################
+
 [handler_console]
 level=WARNING
 class=StreamHandler
 formatter=simple
 args=(sys.stdout,)
 
+[handler_srvdebug]
+level=DEBUG
+class=logging.handlers.TimedRotatingFileHandler
+formatter=simple
+args=('/var/log/zuul/gearman-server-debug.log', 'midnight', 1, 4,)
+
 [handler_normal]
 level=WARNING
 class=logging.handlers.TimedRotatingFileHandler
 formatter=simple
 args=('/var/log/zuul/gearman-server.log', 'midnight', 1, 30,)
 
+#################################################################
+
 [formatter_simple]
 format=%(asctime)s %(levelname)s %(name)s: %(message)s
 datefmt=

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idda66be684a568050cae2f4fb9739d09564b48a2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>

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

Reply via email to