adjusted logging

This commit is contained in:
Sebastian Stenzel
2021-07-14 17:23:08 +02:00
parent de07c0aa9a
commit 7d3678dc36
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ class Client implements IpcCommunicator {
public static Client create(Path socketPath) throws IOException {
var address = UnixDomainSocketAddress.of(socketPath);
var socketChannel = SocketChannel.open(address);
LOG.info("Connected to IPC server on UNIX socket {}", socketPath);
LOG.info("Connected to IPC server on socket {}", socketPath);
return new Client(socketChannel);
}

View File

@@ -45,7 +45,7 @@ public interface IpcCommunicator extends Closeable {
try {
return Server.create(socketPaths.iterator().next());
} catch (IOException e) {
LOG.error("Failed to create IPC server using UNIX sockets", e);
LOG.warn("Failed to create IPC server", e);
return new LoopbackCommunicator();
}
}

View File

@@ -30,7 +30,7 @@ class Server implements IpcCommunicator {
var address = UnixDomainSocketAddress.of(socketPath);
var serverSocketChannel = ServerSocketChannel.open(StandardProtocolFamily.UNIX);
serverSocketChannel.bind(address);
LOG.info("Spawning IPC server listening on UNIX socket {}", socketPath);
LOG.info("Spawning IPC server listening on socket {}", socketPath);
return new Server(serverSocketChannel, socketPath);
}