Remove set_level_by_argv.

This commit is contained in:
voussoir 2021-08-10 11:54:04 -07:00
parent 61db9296c8
commit eddd7b3818
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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