Two debug sites fail to pass down shardName, leading to mal-formatted
log messages.
Change-Id: I5521539c54c2e1f7ef5ef25d9a47fbc6d6d0a27c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
2fdecf33df3d9ca653fb8730116c54c67c6740ed)
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionCommitted(txId);
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionCommitted(txId);
- LOG.debug("{}: Aborted transaction {}", txId);
+ LOG.debug("{}: Aborted transaction {}", shardName, txId);
} else {
LOG.warn("{}: Unknown history for commited transaction {}, ignoring", shardName, txId);
}
} else {
LOG.warn("{}: Unknown history for commited transaction {}, ignoring", shardName, txId);
}
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionPurged(txId);
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionPurged(txId);
- LOG.debug("{}: Purged transaction {}", txId);
+ LOG.debug("{}: Purged transaction {}", shardName, txId);
} else {
LOG.warn("{}: Unknown history for purged transaction {}, ignoring", shardName, txId);
}
} else {
LOG.warn("{}: Unknown history for purged transaction {}, ignoring", shardName, txId);
}