summaryrefslogtreecommitdiff
path: root/ironic_python_agent/cmd
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2021-03-30 07:58:34 -0700
committerJulia Kreger <juliaashleykreger@gmail.com>2021-04-01 11:16:20 -0700
commitdf418984f037856813b6bc5e495ef602a6737ee3 (patch)
treedaa6b60b295567538e3a99ecb4440ebf531c4170 /ironic_python_agent/cmd
parent49d123dd6e32ea1455da1a2f11d6e624d435c308 (diff)
downloadironic-python-agent-df418984f037856813b6bc5e495ef602a6737ee3.tar.gz
Capture the early logging
_early_log prints to stdout, which is fine in some cases, however in other cases it gets lost in the shuffle of process launch by things like systemd. Lets try to save everything, and re-log it so it is easy to debug early issues. Change-Id: I334a9073d17cccec4c669fae82edc3e388debc5c
Diffstat (limited to 'ironic_python_agent/cmd')
-rw-r--r--ironic_python_agent/cmd/agent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/cmd/agent.py b/ironic_python_agent/cmd/agent.py
index 92530347..9ebe3006 100644
--- a/ironic_python_agent/cmd/agent.py
+++ b/ironic_python_agent/cmd/agent.py
@@ -46,7 +46,7 @@ def run():
logger = log.getLogger(__name__)
logger.debug("Configuration:")
CONF.log_opt_values(logger, log.DEBUG)
-
+ utils.log_early_log_to_logger()
agent.IronicPythonAgent(CONF.api_url,
agent.Host(hostname=CONF.advertise_host,
port=CONF.advertise_port),