diff --git a/models/ssh_key.go b/models/ssh_key.go index a7b1680f6..471f4cd12 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -374,6 +374,11 @@ func rewriteAuthorizedKeys(key *PublicKey, p, tmpP string) error { break } } + + if !isFound { + log.Warn("SSH key %d not found in authorized_keys file for deletion", key.ID) + } + return nil }