core: debug events (#4006)

This commit is contained in:
Evgeny Poberezkin
2024-04-09 17:31:52 +01:00
committed by GitHub
parent a5db36469d
commit 72611084d3
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -2151,6 +2151,7 @@ processChatCommand' vr = \case
CLGroup gId -> "Group " <> show gId
CLUserContact ucId -> "UserContact " <> show ucId
CLFile fId -> "File " <> show fId
DebugEvent event -> toView event >> ok_
GetAgentWorkers -> lift $ CRAgentWorkersSummary <$> withAgent' getAgentWorkersSummary
GetAgentWorkersDetails -> lift $ CRAgentWorkersDetails <$> withAgent' getAgentWorkersDetails
GetAgentStats -> lift $ CRAgentStats . map stat <$> withAgent' getAgentStats
@@ -7225,6 +7226,7 @@ chatCommandP =
("/quit" <|> "/q" <|> "/exit") $> QuitChat,
("/version" <|> "/v") $> ShowVersion,
"/debug locks" $> DebugLocks,
"/debug event " *> (DebugEvent <$> jsonP),
"/get stats" $> GetAgentStats,
"/reset stats" $> ResetAgentStats,
"/get subs" $> GetAgentSubs,
+1
View File
@@ -492,6 +492,7 @@ data ChatCommand
| QuitChat
| ShowVersion
| DebugLocks
| DebugEvent ChatResponse
| GetAgentStats
| ResetAgentStats
| GetAgentSubs