Skip to content

Commit fd11873

Browse files
jefdriesenmikeller
authored andcommitted
Include the fingerprint data in the logs
The fingerprint data is valuable information when trying to reproduce some issues reported by users.
1 parent 7eb0cc5 commit fd11873

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ dc_device_set_fingerprint (dc_device_t *device, const unsigned char data[], unsi
325325
if (device->vtable->set_fingerprint == NULL)
326326
return DC_STATUS_UNSUPPORTED;
327327

328+
HEXDUMP (device->context, DC_LOGLEVEL_INFO, "Fingerprint", data, size);
329+
328330
return device->vtable->set_fingerprint (device, data, size);
329331
}
330332

0 commit comments

Comments
 (0)