diff --git a/app/dockerdwrapper.c b/app/dockerdwrapper.c index 0c58e0a..624cec8 100644 --- a/app/dockerdwrapper.c +++ b/app/dockerdwrapper.c @@ -877,25 +877,12 @@ main(void) return exit_code; } -static const char * -str_rm(int method) -{ - switch (method) { - case POST: - return "POST"; - case DELETE: - return "DELETE"; - } - return "UNKNOWN"; -} - void callback_action(__attribute__((unused)) fcgi_handle handle, int request_method, char *cert_name, char *file_path) { - syslog(LOG_INFO,"callback_action: request %s with cert_name %s, file_path %s", str_rm(request_method), cert_name, file_path); // Check that the cert name is supported bool supported_cert = false; for (size_t i = 0; i < sizeof(tls_certs) / sizeof(tls_certs[0]); ++i) { @@ -936,8 +923,6 @@ callback_action(__attribute__((unused)) fcgi_handle handle, syslog(LOG_ERR, "Failed to remove %s from %s.", cert_name, tls_cert_path); return; } - } else { - syslog(LOG_INFO, "File %s: did not exist", cert_file_with_path); } break; diff --git a/app/fastcgi_cert_manager.c b/app/fastcgi_cert_manager.c index 0ad28eb..a33116f 100644 --- a/app/fastcgi_cert_manager.c +++ b/app/fastcgi_cert_manager.c @@ -207,7 +207,7 @@ handle_http(void *data, __attribute__((unused)) void *userdata) char *status = "200 OK"; char *return_message = ""; char *method = FCGX_GetParam("REQUEST_METHOD", request->envp); - syslog(LOG_INFO, "Entered handle_http: %s", method); + syslog(LOG_INFO,"cert_manager.cgi: %s", method); if (strcmp(method, "POST") == 0 || strcmp(method, "DELETE") == 0) { const char *uriString = FCGX_GetParam("REQUEST_URI", request->envp); @@ -270,7 +270,7 @@ handle_http(void *data, __attribute__((unused)) void *userdata) return_message = "The used request message is not allowed"; } - end: +end: FCGX_FPrintF(request->out, "Status: %s\r\n" "Content-Type: text/html\r\n\r\n" @@ -283,7 +283,6 @@ handle_http(void *data, __attribute__((unused)) void *userdata) static void * handle_fcgi(__attribute__((unused)) void *arg) { - syslog(LOG_INFO, "Entered handle_fcgi"); GThreadPool *workers = g_thread_pool_new((GFunc)handle_http, NULL, -1, FALSE, NULL); while (workers) {