1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Cosmetic - register level names

Ticket:
Reviewed By:
Testing Done: Tested sanity
This commit is contained in:
roopa
2014-04-22 22:27:59 -07:00
parent d913472d5a
commit c778afebc3

View File

@ -141,6 +141,10 @@ def init(args):
try: try:
logging.basicConfig(level=log_level, logging.basicConfig(level=log_level,
format='%(levelname)s: %(message)s') format='%(levelname)s: %(message)s')
logging.addLevelName(logging.ERROR, 'error')
logging.addLevelName(logging.WARNING, 'warning')
logging.addLevelName(logging.DEBUG, 'debug')
logging.addLevelName(logging.INFO, 'info')
logger = logging.getLogger('ifupdown') logger = logging.getLogger('ifupdown')
except: except:
raise raise