core: do not log TLS handshake errors by default, option to enable (#1652)

* core: do not log TLS handshake errors by default, option to enable

* update simplexmq
This commit is contained in:
Evgeny Poberezkin
2022-12-27 12:05:13 +00:00
committed by GitHub
parent 90a20cd52f
commit 13090ff6ed
6 changed files with 16 additions and 9 deletions

View File

@@ -3870,8 +3870,9 @@ chatCommandP =
netCfgP = do
socksProxy <- "socks=" *> ("off" $> Nothing <|> "on" $> Just defaultSocksProxy <|> Just <$> strP)
t_ <- optional $ " timeout=" *> A.decimal
logErrors <- " log=" *> onOffP <|> pure False
let tcpTimeout = 1000000 * fromMaybe (maybe 5 (const 10) socksProxy) t_
pure $ fullNetworkConfig socksProxy tcpTimeout
pure $ fullNetworkConfig socksProxy tcpTimeout logErrors
dbKeyP = nonEmptyKey <$?> strP
nonEmptyKey k@(DBEncryptionKey s) = if null s then Left "empty key" else Right k
autoAcceptP =