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:
@ -141,6 +141,10 @@ def init(args):
|
||||
try:
|
||||
logging.basicConfig(level=log_level,
|
||||
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')
|
||||
except:
|
||||
raise
|
||||
|
Reference in New Issue
Block a user