Skip to content

Commit b33822c

Browse files
committed
specify default log level as string
so that it shows as human readable in help
1 parent e7514ca commit b33822c

File tree

1 file changed

+2
-2
lines changed
  • tools/src/main/python/opengrok_tools/utils

1 file changed

+2
-2
lines changed

tools/src/main/python/opengrok_tools/utils/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
#
21-
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
21+
# Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2222
#
2323

2424
import logging
@@ -48,7 +48,7 @@ def fatal(msg, exit=True):
4848
def add_log_level_argument(parser):
4949
parser.add_argument('-l', '--loglevel', action=LogLevelAction,
5050
help='Set log level (e.g. \"ERROR\")',
51-
default=logging.INFO)
51+
default="INFO")
5252

5353

5454
class LogLevelAction(argparse.Action):

0 commit comments

Comments
 (0)