Use constants

This commit is contained in:
slush0 2016-04-29 13:51:47 +02:00 committed by Pavol Rusnak
parent 5cf292e41a
commit f9fa429f84
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,13 @@
import sys
CRITICAL = 50
ERROR = 40
WARNING = 30
INFO = 20
DEBUG = 10
NOTSET = 0
# raise Exception("Disabled")
CRITICAL = const(50)
ERROR = const(40)
WARNING = const(30)
INFO = const(20)
DEBUG = const(10)
NOTSET = const(0)
_level_dict = {
CRITICAL: "CRIT",