Minor logging corrections

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

No files matched your search

+4 -1
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 {