aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/client.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-08 09:04:24 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-08 09:04:24 +0200
commit5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6 (patch)
tree6472c8d0bf822c52b633804a39afc05351c0571b /src/client.c
parentlog: prepend timestamps (diff)
downloadcimple-5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6.tar.gz
cimple-5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6.zip
log: refactoring
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index c711235..6f1bb47 100644
--- a/src/client.c
+++ b/src/client.c
@@ -16,7 +16,7 @@ int client_create(struct client *client, const struct settings *settings)
void client_destroy(const struct client *client)
{
- check_errno(close(client->fd), "close");
+ log_errno_if(close(client->fd), "close");
}
int client_main(const struct client *client, int argc, char *argv[])
@@ -30,7 +30,7 @@ int client_main(const struct client *client, int argc, char *argv[])
return ret;
if (msg_is_error(&response)) {
- print_error("Server failed to process the request\n");
+ log_err("Server failed to process the request\n");
ret = -1;
goto free_response;
}