summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Maguire <contact@johnmaguire.me>2016-01-31 22:01:16 -0500
committerJohn Maguire <contact@johnmaguire.me>2016-01-31 22:02:23 -0500
commitcaa4ca46c0d4cb7b29e5702679b1ce70b7a2c178 (patch)
tree4e990ea8618eff8835268595d17e039e08e99eb7
parenta849ac0164550505520ab12774b48ae579d2f302 (diff)
downloadgitea-caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178.tar.gz
gitea-caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178.zip
Add debug log when SSH key for deletion isn't found
-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
}