terminal: options for log level and internal queue sizes (#1755)

* terminal: log levels

* option for internal queue sizes
This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2023-01-16 09:13:46 +00:00
1 parent 9dad55ce8d
commit af414d7f6e
10 files changed
+102 -34

No files matched your search

+4
View File
@@ -77,6 +77,7 @@ data ChatConfig = ChatConfig
subscriptionConcurrency :: Int,
subscriptionEvents :: Bool,
hostEvents :: Bool,
logLevel :: ChatLogLevel,
testView :: Bool
}
@@ -543,6 +544,9 @@ tmeToPref currentTTL tme = uncurry TimedMessagesPreference $ case tme of
TMEEnableKeepTTL -> (FAYes, currentTTL)
TMEDisableKeepTTL -> (FANo, currentTTL)
data ChatLogLevel = CLLDebug | CLLInfo | CLLWarning | CLLError | CLLImportant
deriving (Eq, Ord, Show)
data ChatError
= ChatError {errorType :: ChatErrorType}
| ChatErrorAgent {agentError :: AgentErrorType, connectionEntity_ :: Maybe ConnectionEntity}