From caa4ca46c0d4cb7b29e5702679b1ce70b7a2c178 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sun, 31 Jan 2016 22:01:16 -0500 Subject: Add debug log when SSH key for deletion isn't found --- models/ssh_key.go | 5 +++++ 1 file changed, 5 insertions(+) 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 } -- cgit v1.2.3