Minor logging corrections

This commit is contained in:
Juan Font Alonso 2022-08-15 10:43:39 +02:00
parent f599bea216
commit 5cf9eedf42
3 changed files with 9 additions and 5 deletions

View file

@ -118,7 +118,10 @@ func decode(
pubKey *key.MachinePublic,
privKey *key.MachinePrivate,
) error {
log.Trace().Int("length", len(msg)).Msg("Trying to decrypt")
log.Trace().
Str("pubkey", pubKey.ShortString()).
Int("length", len(msg)).
Msg("Trying to decrypt")
decrypted, ok := privKey.OpenFrom(*pubKey, msg)
if !ok {