]> source.dussan.org Git - gitea.git/commitdiff
Add debug log when SSH key for deletion isn't found
authorJohn Maguire <contact@johnmaguire.me>
Mon, 1 Feb 2016 03:01:16 +0000 (22:01 -0500)
committerJohn Maguire <contact@johnmaguire.me>
Mon, 1 Feb 2016 03:02:23 +0000 (22:02 -0500)
models/ssh_key.go

index a7b1680f674cbe99619bca70608e8657ae448c80..471f4cd12c8256bf16bbb1aa2d4348ba86e5bc30 100644 (file)
@@ -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
 }