1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

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

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')