aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-07 16:10:09 +0000
committerOmar Polo <op@omarpolo.com>2021-02-07 16:10:09 +0000
commit3077ce5bee2a492a165e88b9a60bda87c80caedc (patch)
tree9c7ac5c9a5e079a1c71de6a4eec0b75cbcd6696f /server.c
parenta64959c99a63178209c3612c98c8c093bf60b431 (diff)
don't fprintf
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 261515b..52c7420 100644
--- a/server.c
+++ b/server.c
@@ -1035,7 +1035,7 @@ loop(struct tls *ctx, int sock4, int sock6)
for (;;) {
if ((n = poll(fds, MAX_USERS, INFTIM)) == -1) {
if (errno == EINTR) {
- fprintf(stderr, "connected clients: %d\n",
+ log_info(NULL, "%d connected clients",
connected_clients);
} else
fatal("poll: %s", strerror(errno));