]> granicus.if.org Git - apache/commitdiff
log the command-line before invoking the log client
authorJeff Trawick <trawick@apache.org>
Mon, 6 Oct 2014 23:19:55 +0000 (23:19 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 6 Oct 2014 23:19:55 +0000 (23:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629785 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_ct_util.c

index 70ea4177c1758f2f00e05ef940313866e6da9c7b..c7a2e1ead5099a997056b29646ddf70835385f43 100644 (file)
@@ -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,