Repository: logging-log4j2 Updated Branches: refs/heads/master eb285c876 -> b96c60fbb
Clean up logging call sites. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b96c60fb Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b96c60fb Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b96c60fb Branch: refs/heads/master Commit: b96c60fbbb3824e5178697cdc279257c31c5af70 Parents: eb285c8 Author: Gary Gregory <[email protected]> Authored: Wed Aug 16 17:23:59 2017 -0600 Committer: Gary Gregory <[email protected]> Committed: Wed Aug 16 17:23:59 2017 -0600 ---------------------------------------------------------------------- .../java/org/apache/logging/log4j/core/net/TcpSocketManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b96c60fb/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TcpSocketManager.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TcpSocketManager.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TcpSocketManager.java index c8525c7..95b9bee 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TcpSocketManager.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TcpSocketManager.java @@ -428,7 +428,7 @@ public class TcpSocketManager extends AbstractSocketManager { try { inetAddress = InetAddress.getByName(data.host); } catch (final UnknownHostException ex) { - LOGGER.error("Could not find address of " + data.host, ex, ex); + LOGGER.error("Could not find address of {}: {}", data.host, ex, ex); return null; } Socket socket = null; @@ -440,7 +440,7 @@ public class TcpSocketManager extends AbstractSocketManager { data.connectTimeoutMillis, data.reconnectDelayMillis, data.immediateFail, data.layout, data.bufferSize, data.socketOptions); } catch (final IOException ex) { - LOGGER.error("TcpSocketManager (" + name + ") caught exception and will continue:" + ex, ex); + LOGGER.error("TcpSocketManager ({}) caught exception and will continue:", name, ex, ex); os = NullOutputStream.getInstance(); } if (data.reconnectDelayMillis == 0) {
