From ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 11 Dec 2015 20:02:20 +0100 Subject: Change verbose level for printing auto-shutdown messages --- mcwrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcwrapper b/mcwrapper index fd729e6..565e677 100755 --- a/mcwrapper +++ b/mcwrapper @@ -56,7 +56,7 @@ def load_conf(config_file): def autoshutdown_enable(): global shutdownTimeout if (conf.timeout > 0): - if (conf.verbose_level > 0): + if (conf.verbose_level >= 0): print("Automatic shutdown after " + str(conf.timeout) + " min.") shutdownTimeout = Timer(conf.timeout * 60.0, __server_send_stop__) @@ -68,7 +68,7 @@ def autoshutdown_disable(): try: shutdownTimeout.cancel() del shutdownTimeout - if (conf.verbose_level > 0): + if (conf.verbose_level >= 0): print("Automatic shutdown disabled.") except NameError: pass -- cgit v1.2.3