Files
system-config/playbooks/roles/zuul-launcher/files/logging.conf
James E. Blair b5fdaad10c Update zuul-launcher logging config
This makes two changes to the zuul-launcher log config:

* It routes the root logger to the log files as well.  This way,
  if there are any un-specifified log entries at WARNING or above,
  they will go to the files we actually look at, as well as the
  console.
* It suppresses paramiko.transport messages.  This module frequently
  logs at ERROR level, every time we receive an incompatible ssh
  host key (which is often).  Get rid of those messages.  All other
  paramiko messages will be handled by the root logger at WARNING
  level, which is what this was doing before.

Change-Id: Ie58fc995c40774285b4a2101aa7ff18ea0d70171
2025-07-31 15:57:20 -07:00

60 lines
990 B
Plaintext

[loggers]
keys=root,zuul,gerrit,paramiko,keystoneauth
[handlers]
keys=console,debug,normal
[formatters]
keys=simple
[logger_root]
level=WARNING
handlers=console,debug,normal
[logger_zuul]
level=DEBUG
handlers=debug,normal
qualname=zuul
propagate=0
[logger_gerrit]
level=INFO
handlers=debug,normal
qualname=gerrit
propagate=0
[logger_paramiko]
level=CRITICAL
handlers=debug,normal
qualname=paramiko.transport
propagate=0
[logger_keystoneauth]
level=WARNING
handlers=debug,normal
qualname=keystoneauth
propagate=0
[handler_console]
level=WARNING
class=StreamHandler
formatter=simple
args=(sys.stdout,)
[handler_debug]
level=DEBUG
class=logging.handlers.WatchedFileHandler
formatter=simple
args=('/var/log/zuul/launcher-debug.log',)
[handler_normal]
level=INFO
class=logging.handlers.WatchedFileHandler
formatter=simple
args=('/var/log/zuul/launcher.log',)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s
datefmt=
class=zuul.lib.logutil.MultiLineFormatter