From 59670bdb6f0a3bba898274eadf47707e93bea195 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 15 May 2024 01:04:32 +0200 Subject: config: add a debug mode option this is meant to be false by default, and otherwise relaxes requirements on e.g. incoming pings, which are inconvenient when testing by hand. --- lib/Config.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Config.hs') diff --git a/lib/Config.hs b/lib/Config.hs index 94fdd28..4aa62fc 100644 --- a/lib/Config.hs +++ b/lib/Config.hs @@ -24,6 +24,7 @@ data ServerConfig = ServerConfig , serverConfigGtfs :: FilePath , serverConfigAssets :: FilePath , serverConfigZoneinfoPath :: FilePath + , serverConfigDebugMode :: Bool , serverConfigLogin :: UffdConfig , serverConfigLogging :: LoggingConfig } deriving (Generic) @@ -43,6 +44,7 @@ instance DefaultConfig ServerConfig where , serverConfigGtfs = "./gtfs.zip" , serverConfigAssets = "./assets" , serverConfigZoneinfoPath = "/etc/zoneinfo/" + , serverConfigDebugMode = False , serverConfigLogin = configDef , serverConfigLogging = configDef } -- cgit v1.2.3