mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 11:18:25 +00:00
parent
a2bc10e51c
commit
ae301af291
@ -83,7 +83,7 @@ proc updateLogLevel*(logLevel: string) {.raises: [Defect, ValueError].} =
|
||||
# Updates log levels (without clearing old ones)
|
||||
let directives = logLevel.split(";")
|
||||
try:
|
||||
setLogLevel(parseEnum[LogLevel](directives[0]))
|
||||
setLogLevel(parseEnum[LogLevel](directives[0].capitalizeAscii()))
|
||||
except ValueError:
|
||||
raise (ref ValueError)(msg: "Please specify one of TRACE, DEBUG, INFO, NOTICE, WARN, ERROR or FATAL")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user