teminal: option to log errors and service messages to file, closes #1516 (#1957)

* teminal: option to log errors and service messages to file, closes #1516

* rename function
This commit is contained in:
Evgeny Poberezkin
2023-02-28 23:26:08 +00:00
committed by GitHub
parent 38b7e4d4a4
commit 2b77920dcd
7 changed files with 69 additions and 20 deletions
+6 -4
View File
@@ -59,8 +59,9 @@ testOpts =
logLevel = CLLImportant,
logConnections = False,
logServerHosts = False,
logAgent = False,
tbqSize = 64
logAgent = Nothing,
logFile = Nothing,
tbqSize = 16
},
chatCmd = "",
chatCmdDelay = 3,
@@ -91,7 +92,7 @@ data TestCC = TestCC
}
aCfg :: AgentConfig
aCfg = agentConfig defaultChatConfig
aCfg = (agentConfig defaultChatConfig) {tbqSize = 16}
testAgentCfg :: AgentConfig
testAgentCfg = aCfg {reconnectInterval = (reconnectInterval aCfg) {initialInterval = 50000}}
@@ -100,7 +101,8 @@ testCfg :: ChatConfig
testCfg =
defaultChatConfig
{ agentConfig = testAgentCfg,
testView = True
testView = True,
tbqSize = 16
}
testAgentCfgV1 :: AgentConfig