Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 12e316cfa9950e5ef49dbf8c02f0a933e2647b49
https://github.com/tribe29/checkmk/commit/12e316cfa9950e5ef49dbf8c02f0a933e…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2022-08-16 (Tue, 16 Aug 2022)
Changed paths:
A .werks/14606
M cmk/utils/log/_log.py
A omd/packages/check_mk/skel/etc/logrotate.d/agent_bakery
M tests/unit/cmk/gui/watolib/test_watolib.py
Log Message:
-----------
14606 Agent Bakery: Optionally log to dedicated logfile
It's now possible to activate logging for the agent bakery.
When activated at <i>Global Settings - Setup - Agent bakery logging</t>,
the agent bakery will log messages to <tt>~/var/log/agent_bakery.log</tt>,
with the selected loglevel. This is applies equally to bakery jobs invoked via GUI
via command line.
Without activated logging, baking details are still available on the command line
when baking with command <tt>cmk --bake-agents -v</tt> as a site user.
Also, when baking on the GUI, on failure, error details are propagated to the executing
background job as they already used to be.
Change-Id: I104a3d48b4695115603ca721715d0e2d2e3ec4c9