Other: Ensure logout works when offline

This commit is contained in:
James Houlahan
2022-11-02 21:17:06 +01:00
parent 039d1b7f99
commit af542a2fc1
2 changed files with 13 additions and 3 deletions

View File

@ -562,7 +562,7 @@ func (user *User) Logout(ctx context.Context, withAPI bool) error {
if withAPI {
if err := user.client.AuthDelete(ctx); err != nil {
return fmt.Errorf("failed to delete auth: %w", err)
user.log.WithError(err).Warn("Failed to delete auth")
}
}