From 8c1a8b8ba46c0178d304f25f22945d2d2c3f432e Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 6 Oct 2014 23:19:55 +0000 Subject: [PATCH] log the command-line before invoking the log client git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629785 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_ct_util.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/ssl/ssl_ct_util.c b/modules/ssl/ssl_ct_util.c index 70ea4177c17..c7a2e1ead50 100644 --- a/modules/ssl/ssl_ct_util.c +++ b/modules/ssl/ssl_ct_util.c @@ -371,6 +371,18 @@ apr_status_t ctutil_run_to_log(apr_pool_t *p, return rv; } + if (APLOGtrace1(s)) { + const char *cmdline = ""; + const char **curarg = args; + + while (*curarg) { + cmdline = apr_pstrcat(p, cmdline, *curarg, " ", NULL); + curarg++; + } + ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, s, + "Running \"%s\"", cmdline); + } + rv = apr_proc_create(&proc, args[0], args, NULL, attr, p); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, -- 2.47.3