Removed the use of the DEBUG environmant variable, kept only MUNIN_DEBUG

This commit is contained in:
Neraud 2018-08-04 17:56:23 +02:00
parent eb9681a7cc
commit e29c89c0fa
1 changed files with 1 additions and 2 deletions

View File

@ -124,8 +124,7 @@ import time
plugin_version = "1.0.0"
debug = int(os.getenv('MUNIN_DEBUG', os.getenv('DEBUG', 0))) > 0
if debug:
if int(os.getenv('MUNIN_DEBUG', 0)) > 0:
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)-7s %(message)s')