Add an -L
argument to start.py, to explicity specify log level
This commit is contained in:
parent
b9e71ec833
commit
14db95601c
1 changed files with 5 additions and 1 deletions
4
start.py
4
start.py
|
@ -25,10 +25,14 @@ arg_parser.add_argument("--add-server", "-a",
|
|||
help="Add a new server", action="store_true")
|
||||
|
||||
arg_parser.add_argument("--verbose", "-v", action="store_true")
|
||||
arg_parser.add_argument("--log-level", "-L")
|
||||
|
||||
args = arg_parser.parse_args()
|
||||
|
||||
log_level = args.log_level
|
||||
if not log_level:
|
||||
log_level = "debug" if args.verbose else "info"
|
||||
|
||||
log = Logging.Log(log_level, args.log_dir)
|
||||
database = Database.Database(log, args.database)
|
||||
|
||||
|
|
Loading…
Reference in a new issue