DBZ-5612 Remove records from being logged at all levels
This commit is contained in:
parent
ce3531f6d6
commit
c03bcf8606
@ -135,7 +135,7 @@ private void monitorSignals() {
|
||||
return;
|
||||
}
|
||||
catch (final Exception e) {
|
||||
LOGGER.error("Skipped signal due to an error '{}'", record, e);
|
||||
LOGGER.error("Skipped signal due to an error", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ public void disableBuffering() {
|
||||
|
||||
protected void doEnqueue(T record) throws InterruptedException {
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
LOGGER.debug("Enqueuing source record '{}'", record);
|
||||
LOGGER.debug("Enqueuing source record");
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -780,7 +780,7 @@ public <K, V> void produce(String producerName, int messageCount,
|
||||
ProducerRecord<K, V> record = messageSupplier.get();
|
||||
producer.send(record);
|
||||
producer.flush();
|
||||
LOGGER.debug("Producer {}: sent message {}", producerName, record);
|
||||
LOGGER.debug("Producer {}: sent message", producerName);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
@ -926,7 +926,7 @@ public <K, V> void consume(String groupId, String clientId, OffsetResetStrategy
|
||||
consumer.subscribe(new ArrayList<>(topics));
|
||||
while (continuation.getAsBoolean()) {
|
||||
consumer.poll(10).forEach(record -> {
|
||||
LOGGER.debug("Consumer {}: consuming message {}", clientId, record);
|
||||
LOGGER.debug("Consumer {}: consuming message", clientId);
|
||||
consumerFunction.accept(record);
|
||||
if (offsetCommitCallback != null) {
|
||||
consumer.commitAsync(offsetCommitCallback);
|
||||
|
@ -150,7 +150,7 @@ protected void storeRecord(HistoryRecord record) throws SchemaHistoryException {
|
||||
line = writer.write(record.document());
|
||||
}
|
||||
catch (IOException e) {
|
||||
LOGGER.error("Failed to convert record to string: {}", record, e);
|
||||
LOGGER.error("Failed to convert record to string", e);
|
||||
throw new SchemaHistoryException("Unable to write database schema history record");
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ protected void storeRecord(HistoryRecord record) throws SchemaHistoryException {
|
||||
historyWriter.newLine();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("Failed to add record to history at {}: {}", path, record, e);
|
||||
logger.error("Failed to add record to history at {}", path, e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -133,7 +133,7 @@ protected void storeRecord(HistoryRecord record) throws SchemaHistoryException {
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("Failed to convert record to string: {}", record, e);
|
||||
logger.error("Failed to convert record to string", e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -344,10 +344,10 @@ protected void recoverRecords(Consumer<HistoryRecord> records) {
|
||||
}
|
||||
}
|
||||
catch (final IOException e) {
|
||||
LOGGER.error("Error while deserializing history record '{}'", record, e);
|
||||
LOGGER.error("Error while deserializing history record", e);
|
||||
}
|
||||
catch (final Exception e) {
|
||||
LOGGER.error("Unexpected exception while processing record '{}'", record, e);
|
||||
LOGGER.error("Unexpected exception while processing record", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user