Add account to plain text output

Fixes #1075
This commit is contained in:
AsamK 2022-10-29 13:49:14 +02:00
parent e63f2fafb9
commit 25e84f2f5d

View file

@ -33,9 +33,10 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
private void handleMessageInternal(MessageEnvelope envelope, Throwable exception) {
var source = envelope.sourceAddress();
writer.println("Envelope from: {} (device: {})",
writer.println("Envelope from: {} (device: {}) to {}",
source.map(this::formatContact).orElse("unknown source"),
envelope.sourceDevice());
envelope.sourceDevice(),
m.getSelfNumber());
writer.println("Timestamp: {}", DateUtils.formatTimestamp(envelope.timestamp()));
writer.println("Server timestamps: received: {} delivered: {}",
DateUtils.formatTimestamp(envelope.serverReceivedTimestamp()),