From 013b9b7cfe5036f57f8f62f2d22e880f81b2e59a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 19 Nov 2017 14:50:29 +0000 Subject: [PATCH] Print config parsing failures instead of sending them to the debug function --- threshold.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threshold.py b/threshold.py index 1c38729..0cf5c8d 100644 --- a/threshold.py +++ b/threshold.py @@ -63,11 +63,11 @@ def getconfig(): if set(["port", "bind", "usessl"]).issubset(set(config.keys())): if config["usessl"] == True: if not set(["cert", "key"]).issubset(set(config.keys())): - debug("SSL is on but certificate or key is not defined") + print("SSL is on but certificate or key is not defined") exit(1) return config else: - debug("Mandatory values missing from config") + print("Mandatory values missing from config") exit(1) if __name__ == "__main__":