Adjust some logs

This commit is contained in:
Tulir Asokan 2023-08-25 20:45:01 +03:00
parent f5c680d76e
commit 612fb2bae7
2 changed files with 13 additions and 18 deletions

View file

@ -218,6 +218,9 @@ func (c *Client) handleUpdatesEvent(msg *IncomingRPCMessage) {
Msg("Got unknown event type")
}
default:
c.Logger.Debug().Str("action_type", msg.Message.Action.String()).Msg("Got unexpected response")
c.Logger.Debug().
Str("request_id", msg.Message.SessionID).
Str("action_type", msg.Message.Action.String()).
Msg("Got unexpected response")
}
}

View file

@ -7,23 +7,6 @@ import "conversations.proto";
import "authentication.proto";
import "settings.proto";
/*
ConversationEvent = 2
MessageEvent = 3
TypingEvent = 4
SettingsEvent = 5
UserAlertEvent = 6
BrowserPresenceCheckEvent = 7
ParticipantsEvent = 8
ConversationTypeEvent = 9
FavoriteStickersEvent = 10
RecentStickerEvent = 11
CloudStoreInfoEvent = 12
BlobForAttachmentProgressUpdate = 13
*/
message UpdateEvents {
oneof event {
ConversationEvent conversationEvent = 2;
@ -31,6 +14,13 @@ message UpdateEvents {
TypingEvent typingEvent = 4;
settings.Settings settingsEvent = 5;
UserAlertEvent userAlertEvent = 6;
BrowserPresenceCheckEvent browserPresenceCheckEvent = 7;
//ParticipantsEvent participantsEvent = 8;
//ConversationTypeEvent conversationTypeEvent = 9;
//FavoriteStickersEvent favoriteStickersEvent = 10;
//RecentStickerEvent recentStickerEvent = 11;
//CloudStoreInfoEvent cloudStoreInfoEvent = 12;
//BlobForAttachmentProgressUpdate blobForAttachmentProgressUpdate = 13;
}
}
@ -50,6 +40,8 @@ message UserAlertEvent {
AlertType alertType = 2;
}
message BrowserPresenceCheckEvent {}
message TypingData {
string conversationID = 1;
User user = 2;