From 81a8ba2a41d0c6182f06a148e0f0321bff96ff8a Mon Sep 17 00:00:00 2001 From: Ken Sanislo Date: Fri, 28 Dec 2018 11:06:06 -0800 Subject: [PATCH] fix docker 1B warning with config dump --- tcc-exporter | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tcc-exporter b/tcc-exporter index 3d56f32..7ad1b61 100755 --- a/tcc-exporter +++ b/tcc-exporter @@ -17,7 +17,7 @@ from http.cookiejar import LWPCookieJar from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.error import HTTPError -VERSION = '0.9.14' +VERSION = '0.9.15' CONFIG_FILE = os.environ.get('TCC_CONFIG_FILE', 'persistent/config.yml') PREFIX = 'https://mytotalconnectcomfort.com/' @@ -248,7 +248,8 @@ def hup_handler(signum, frame): def usr1_handler(signum, frame): - log('DEBUG', 'Configuration dump:\n\n' + yaml.dump(config,default_flow_style = False)) + log('DEBUG', 'Active configuration:') + print(yaml.dump(config,default_flow_style = False), end='') def usr2_handler(signum, frame):