ios: set log level

This commit is contained in:
Evgeny Poberezkin
2024-05-18 15:25:39 +01:00
parent 0e9cc8b3a8
commit c3671b04c5
4 changed files with 42 additions and 0 deletions
+4
View File
@@ -1286,6 +1286,10 @@ func apiGetVersion() throws -> CoreVersionInfo {
throw r
}
func apiSetAppLogLevel(_ ll: ChatLogLevel) async throws {
try await sendCommandOkResp(.setAppLogLevel(appLogLevel: ll))
}
private func currentUserId(_ funcName: String) throws -> Int64 {
if let userId = ChatModel.shared.currentUser?.userId {
return userId