Skip to content

Commit 4b5b865

Browse files
committed
Not to log class name
Now, the log message contains the class name: 2021-12-19 22:59:31,787 ERROR [main] org.fluentd.logger.sender.RawSocketSender java.net.ConnectException: Connection refused (Connection refused) Since log frameworks usually have a way to log class name without the need to include it in the log message, the class name should be removed. The following text shows a sample log mesage after this change: 2021-12-19 22:56:58,842 ERROR [main] flush failed java.net.ConnectException: Connection refused (Connection refused) Signed-off-by: Jingguo Yao <[email protected]>
1 parent 2e5fdf2 commit 4b5b865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/fluentd/logger/sender/RawSocketSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public synchronized void flush() {
203203
catch (Exception handlerException) {
204204
LOG.warn("ErrorHandler.handleNetworkError failed", handlerException);
205205
}
206-
LOG.error(this.getClass().getName(), "flush", e);
206+
LOG.error("flush failed", e);
207207
reconnector.addErrorHistory(System.currentTimeMillis());
208208
close();
209209
}

0 commit comments

Comments
 (0)