aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/ssh_key.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go
index a7b1680f67..471f4cd12c 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
}