diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-09-08 09:04:24 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-09-08 09:04:24 +0200 |
commit | 5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6 (patch) | |
tree | 6472c8d0bf822c52b633804a39afc05351c0571b /src/client.c | |
parent | log: prepend timestamps (diff) | |
download | cimple-5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6.tar.gz cimple-5e64d1c4b78c908e92a65e03fdc6817ffe59a8a6.zip |
log: refactoring
Diffstat (limited to 'src/client.c')
-rw-r--r-- | src/client.c | 4 |
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; } |