Add missing parentheses to title invocation
Small fix. Without this, zuul (scheduler in this example) prints: DEBUG zuul.<built-in method title of str object at 0x7f3c13e65f70>: Configured logging DEBUG zuul.<built-in method title of str object at 0x7f3c1a767bb0>: Configured logging during startup. With the patch it's: DEBUG zuul.Scheduler: Configured logging DEBUG zuul.Gearman_Server: Configured logging Change-Id: Ifa128c646b91e4c17452b63db25552517c571ae1
This commit is contained in:
parent
978d964518
commit
da534d54e6
|
@ -178,7 +178,8 @@ class ZuulDaemonApp(ZuulApp, metaclass=abc.ABCMeta):
|
|||
def setup_logging(self, section, parameter):
|
||||
super(ZuulDaemonApp, self).setup_logging(section, parameter)
|
||||
from zuul.version import version_info as zuul_version_info
|
||||
log = logging.getLogger("zuul.{section}".format(section=section.title))
|
||||
log = logging.getLogger(
|
||||
"zuul.{section}".format(section=section.title()))
|
||||
log.debug(
|
||||
"Configured logging: {version}".format(
|
||||
version=zuul_version_info.release_string()))
|
||||
|
|
Loading…
Reference in New Issue