Validate loggernames passed to --logfilter

This commit is contained in:
knaggita 2016-08-24 18:56:18 +03:00
parent 0b60d28742
commit d26566a1f6

View File

@ -151,7 +151,7 @@ def logfilter_error(logfilter: str):
else:
raise argparse.ArgumentTypeError("filters: Invalid value {} - "
"expected one "
"of: {}".format(filters,
"of: {}".format(logfilter,
', '.join(log.LOGGER_NAMES)))