diff options
author | John Maguire <contact@johnmaguire.me> | 2016-01-31 22:01:16 -0500 |
---|---|---|
committer | John Maguire <contact@johnmaguire.me> | 2016-01-31 22:02:23 -0500 |
commit | caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178 (patch) | |
tree | 4e990ea8618eff8835268595d17e039e08e99eb7 /models | |
parent | a849ac0164550505520ab12774b48ae579d2f302 (diff) | |
download | gitea-caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178.tar.gz gitea-caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178.zip |
Add debug log when SSH key for deletion isn't found
Diffstat (limited to 'models')
-rw-r--r-- | models/ssh_key.go | 5 |
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 } |