refactor(log): use syslog

This commit is contained in:
2026-01-15 18:23:55 +01:00
parent d8f41b071d
commit 9c6d3f0bb3
8 changed files with 66 additions and 34 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ cws_response_s *cws_handler_static_file(cws_request_s *request, cws_handler_conf
string_s *filepath = resolve_file_path(string_cstr(request->path), config);
const char *path = string_cstr(filepath);
CWS_LOG_DEBUG("Resolved path: %s", path);
cws_log_debug("Resolved path: %s", path);
if (!file_exists(path)) {
string_free(filepath);
@@ -50,7 +50,7 @@ cws_response_s *cws_handler_static_file(cws_request_s *request, cws_handler_conf
}
cws_response_set_body_file(response, path);
CWS_LOG_DEBUG("Serving file: %s (%zu bytes)", path, response->content_length);
cws_log_debug("Serving file: %s (%zu bytes)", path, response->content_length);
string_free(filepath);
return response;