Révision e29c89c0
Removed the use of the DEBUG environmant variable, kept only MUNIN_DEBUG
| plugins/git/git_commit_behind | ||
|---|---|---|
| 124 | 124 |
|
| 125 | 125 |
plugin_version = "1.0.0" |
| 126 | 126 |
|
| 127 |
debug = int(os.getenv('MUNIN_DEBUG', os.getenv('DEBUG', 0))) > 0
|
|
| 128 |
if debug: |
|
| 127 |
if int(os.getenv('MUNIN_DEBUG', 0)) > 0:
|
|
| 129 | 128 |
logging.basicConfig(level=logging.DEBUG, |
| 130 | 129 |
format='%(asctime)s %(levelname)-7s %(message)s') |
| 131 | 130 |
|
Formats disponibles : Unified diff