mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +00:00
Move the updateLogLevel in the main file in order to avoid gcsafe error
This commit is contained in:
parent
86040b0853
commit
e784eaea8e
10
codex.nim
10
codex.nim
@ -54,6 +54,16 @@ when isMainModule:
|
||||
,
|
||||
)
|
||||
config.setupLogging()
|
||||
|
||||
try:
|
||||
updateLogLevel(config.logLevel)
|
||||
except ValueError as err:
|
||||
try:
|
||||
stderr.write "Invalid value for --log-level. " & err.msg & "\n"
|
||||
except IOError:
|
||||
echo "Invalid value for --log-level. " & err.msg
|
||||
quit QuitFailure
|
||||
|
||||
config.setupMetrics()
|
||||
|
||||
if not (checkAndCreateDataDir((config.dataDir).string)):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user