Browse Source

Add debug log when SSH key for deletion isn't found

pull/2534/head
John Maguire 9 years ago
parent
commit
caa4ca46c0
  1. 5
      models/ssh_key.go

5
models/ssh_key.go

@ -374,6 +374,11 @@ func rewriteAuthorizedKeys(key *PublicKey, p, tmpP string) error {
break break
} }
} }
if !isFound {
log.Warn("SSH key %d not found in authorized_keys file for deletion", key.ID)
}
return nil return nil
} }

Loading…
Cancel
Save