chore(GODT-2444): Bad event info

This commit is contained in:
James Houlahan
2023-03-02 14:10:23 +01:00
parent 53d5619c51
commit 04a7a81e27
3 changed files with 27 additions and 9 deletions

View File

@ -103,12 +103,23 @@ func (event UserDeauth) String() string {
type UserBadEvent struct {
eventBase
UserID string
Error error
UserID string
OldEventID string
NewEventID string
EventInfo string
Error error
}
func (event UserBadEvent) String() string {
return fmt.Sprintf("UserBadEvent: UserID: %s, Error: %s", event.UserID, event.Error)
return fmt.Sprintf(
"UserBadEvent: UserID: %s, OldEventID: %s, NewEventID: %s, EventInfo: %v, Error: %s",
event.UserID,
event.OldEventID,
event.NewEventID,
event.EventInfo,
event.Error,
)
}
// UserDeleted is emitted when a user has been deleted.