From 6ef65058cf0b5904a13960692e23ee92579814c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 13 Dec 2019 22:28:48 +0100 Subject: [PATCH] server: log socket packet --- server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.c b/server.c index 6aceda46..ae3f22b4 100644 --- a/server.c +++ b/server.c @@ -338,7 +338,7 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl) break; case CONNECT_SUCCESS: - LOG_ERR("foot --server already running"); + LOG_ERR("%s is already accepting connections; is 'foot --server' already running", sock_path); /* FALLTHROUGH */ case CONNECT_ERR: @@ -375,6 +375,8 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl) if (!fdm_add(fdm, fd, EPOLLIN, &fdm_server, server)) goto err; + LOG_INFO("accepting connections on %s", sock_path); + return server; err: