From: John Maguire Date: Mon, 1 Feb 2016 03:01:16 +0000 (-0500) Subject: Add debug log when SSH key for deletion isn't found X-Git-Tag: v0.9.99~527^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178;p=gitea.git Add debug log when SSH key for deletion isn't found --- 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 }