serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1844834 - /serf/trunk/src/logging.c
Date Thu, 25 Oct 2018 14:56:05 GMT
Author: brane
Date: Thu Oct 25 14:56:05 2018
New Revision: 1844834

URL: http://svn.apache.org/viewvc?rev=1844834&view=rev
Log:
Remove testing code from the logging system.

* src/logging.c (serf__log_init): Remove the testing-only code block.

Suggested by: lgo

Modified:
    serf/trunk/src/logging.c

Modified: serf/trunk/src/logging.c
URL: http://svn.apache.org/viewvc/serf/trunk/src/logging.c?rev=1844834&r1=1844833&r2=1844834&view=diff
==============================================================================
--- serf/trunk/src/logging.c (original)
+++ serf/trunk/src/logging.c Thu Oct 25 14:56:05 2018
@@ -66,29 +66,6 @@ apr_status_t serf__log_init(serf_context
     log_baton->output_list = apr_array_make(ctx->pool, 1,
                                             sizeof(serf_log_output_t *));
 
-    /* TODO: remove before next serf release, FOR TESTING ONLY */
-    {
-        serf_log_output_t *output;
-        apr_status_t status;
-
-        status = serf_logging_create_stream_output(&output, ctx,
-                                                   ACTIVE_LOGLEVEL,
-                                                   ACTIVE_LOGCOMPS,
-                                                   SERF_LOG_DEFAULT_LAYOUT,
-                                                   stderr, ctx->pool);
-        if (status)
-            return status;
-
-        status = serf_config_set_object(config, SERF_CONFIG_CTX_LOGBATON,
-                                        log_baton);
-        if (status)
-            return status;
-
-        status = serf_logging_add_output(ctx, output);
-        if (status)
-            return status;
-    }
-
     return APR_SUCCESS;
 }
 



Mime
View raw message