Reenable logging for non-release builds

This commit is contained in:
Zed 2020-06-09 20:29:05 +02:00
parent 61d27efd69
commit 09b85464bd

View file

@ -12,9 +12,10 @@ import routes/[
const configPath {.strdefine.} = "./nitter.conf" const configPath {.strdefine.} = "./nitter.conf"
let (cfg, fullCfg) = getConfig(configPath) let (cfg, fullCfg) = getConfig(configPath)
# Silence Jester's query warning when defined(release):
addHandler(newConsoleLogger()) # Silence Jester's query warning
setLogFilter(lvlError) addHandler(newConsoleLogger())
setLogFilter(lvlError)
let http = if cfg.useHttps: "https" else: "http" let http = if cfg.useHttps: "https" else: "http"
stdout.write &"Starting Nitter at {http}://{cfg.hostname}\n" stdout.write &"Starting Nitter at {http}://{cfg.hostname}\n"