Skip to content

Commit d2cfa65

Browse files
manicsAbdealiLoKo
authored andcommitted
Handle log-level as case-insensitive
JupyterHub passes `debug` when `c.ConfigurableHTTPProxy.debug=True`
1 parent d24458f commit d2cfa65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configurable_http_proxy/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def convert(self, value, param, ctx):
126126
@click.option(
127127
"--log-level",
128128
type=click.Choice(
129-
[logging.getLevelName(i) for i in (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR)]
129+
[logging.getLevelName(i) for i in (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR)],
130+
case_sensitive=False,
130131
),
131132
help='Log level (debug, info, warning, error) (default: "info")',
132133
)

0 commit comments

Comments
 (0)