diff --git a/main.go b/main.go index 7c73776..594594b 100644 --- a/main.go +++ b/main.go @@ -92,11 +92,12 @@ func housekeeping() { if err != nil { switch err.(type) { case utils.AuthcodeUnauthorizedError: + log.Infof("[HK] authCode for player %d is no longer valid", tPlayer.ID) db.Lock.Lock() err = tPlayer.Update().ClearAuthCode().ClearSharecodeUpdated().Exec(context.Background()) db.Lock.Unlock() if err != nil { - log.Warningf("[HK] Unable to clear authcode for player %d: %v", tPlayer.ID, err) + log.Errorf("[HK] Unable to clear authcode for player %d: %v", tPlayer.ID, err) } continue case utils.SharecodeNoMatchError: