diff options
author | Karel Kočí <cynerd@email.cz> | 2015-12-11 20:02:20 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-12-11 20:02:20 +0100 |
commit | ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e (patch) | |
tree | ebf504554616cc9b924ab9c15ccccc4f86b6fdb9 | |
parent | 324c3a64ef7a003b07eb902c4d8f07b8375690e9 (diff) | |
download | mcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.tar.gz mcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.tar.bz2 mcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.zip |
Change verbose level for printing auto-shutdown messages
-rwxr-xr-x | mcwrapper | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |