We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #7173: cmk-update-agent.exe: Fix stdout/stderr redirects

ComponentAgent Bakery
Titlecmk-update-agent.exe: Fix stdout/stderr redirects
Date2019-10-18 10:49:15
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.6.0p6,2.0.0i1
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

This Werk fixes the following bug:

cmk-update-agent.exe console output won't work on Windows if stdout/stderr gets redirected to file. Instead, a Traceback like this will be displayed for every output:

Traceback (most recent call last):

File "logging\__init__.py", line 861, in emit

File "logging\__init__.py", line 734, in format

File "cmk_update_agent.py", line 1713, in format

TypeError: encode() argument 1 must be string, not None

Logged from file cmk_update_agent.py, line 1009

The normal program flow is not affected by this bug, also normal logging takes place as expected, as can be seen at log/cmk-update-agent.log