Remove set_level_by_argv.
This commit is contained in:
parent
61db9296c8
commit
eddd7b3818
1 changed files with 0 additions and 10 deletions
|
@ -148,13 +148,3 @@ def main_level_by_argv(argv):
|
|||
root.addHandler(handler)
|
||||
|
||||
return argv
|
||||
|
||||
def set_level_by_argv(log, argv):
|
||||
'''
|
||||
This function sets the log's level by the flags in argv, then returns the
|
||||
rest of argv which you can pass to your argparser.
|
||||
'''
|
||||
(level, argv) = get_level_by_argv(argv)
|
||||
log.setLevel(level)
|
||||
|
||||
return argv
|
||||
|
|
Loading…
Reference in a new issue