Author: brane
Date: Sun Jun  1 10:05:41 2025
New Revision: 1926030

URL: http://svn.apache.org/viewvc?rev=1926030&view=rev
Log:
Fix fallout from r1844834. Logging now works again, after almos 7 years...
I was a teensy bit too enthusiastic at removing "testing-only" code.

* src/logging.c (serf__log_init): Store the new log baton in the context,
   don't just throw it away and call it a day.

Modified:
    serf/trunk/src/logging.c

Modified: serf/trunk/src/logging.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/src/logging.c?rev=1926030&r1=1926029&r2=1926030&view=diff
==============================================================================
--- serf/trunk/src/logging.c (original)
+++ serf/trunk/src/logging.c Sun Jun  1 10:05:41 2025
@@ -65,7 +65,8 @@ apr_status_t serf__log_init(serf_context
     log_baton->output_list = apr_array_make(ctx->pool, 1,
                                             sizeof(serf_log_output_t *));
 
-    return APR_SUCCESS;
+    return serf_config_set_object(ctx->config, SERF_CONFIG_CTX_LOGBATON,
+                                  log_baton);
 }
 
 static void log_time(FILE *logfp)


Reply via email to