mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 10:23:56 +01:00
Add debug log when SSH key for deletion isn't found
This commit is contained in:
parent
a849ac0164
commit
caa4ca46c0
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue