]> granicus.if.org Git - php/commitdiff
Ryan Bloom's fix of my fix. ;)
authorSterling Hughes <sterling@php.net>
Thu, 16 Aug 2001 06:05:57 +0000 (06:05 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 16 Aug 2001 06:05:57 +0000 (06:05 +0000)
sapi/apache2filter/sapi_apache2.c

index 31114bd8e368aaab5a7d671f77a1e0dac63c49e0..737eedff39cc54f02f96b2d4b319fb6c737906c5 100644 (file)
@@ -182,8 +182,13 @@ static void php_apache_sapi_log_message(char *msg)
        TSRMLS_FETCH();
 
        ctx = SG(server_context);
-
-       aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ctx->f->r->server, "%s", msg);
+    
+    /* We use APLOG_STARTUP because it keeps us from printing the
+     * data and time information at the beginning of the error log
+     * line.  Not sure if this is correct, but it mirrors what happens
+     * with Apache 1.3 -- rbb
+     */
+    ap_log_error(NULL, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, ctx->f->r->server, "%s", msg);
 }
 
 static sapi_module_struct apache2_sapi_module = {