]> granicus.if.org Git - apache/commitdiff
info.file, info.line, and info.status should not be defined for per-request or
authorStefan Fritsch <sf@apache.org>
Tue, 12 Oct 2010 20:01:53 +0000 (20:01 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 12 Oct 2010 20:01:53 +0000 (20:01 +0000)
per-conn info

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1021904 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index f2036a4e1b7e40f5ddfb45406de569f346b8278b..3fb928ae1d90db002092e132b5020fbf4eed498e 100644 (file)
@@ -1165,9 +1165,9 @@ static void log_error_core(const char *file, int line, int module_index,
 
     info.s             = s;
     info.c             = c;
-    info.file          = file;
-    info.line          = line;
-    info.status        = status;
+    info.file          = NULL;
+    info.line          = 0;
+    info.status        = 0;
     info.using_syslog  = (logf == NULL);
     info.startup       = ((level & APLOG_STARTUP) == APLOG_STARTUP);
 
@@ -1214,10 +1214,13 @@ static void log_error_core(const char *file, int line, int module_index,
         }
         else {
             /* the actual error message */
-            info.r = r;
-            info.rmain = rmain;
-            info.level = level_and_mask;
+            info.r            = r;
+            info.rmain        = rmain;
+            info.level        = level_and_mask;
             info.module_index = module_index;
+            info.file         = file;
+            info.line         = line;
+            info.status       = status;
             log_format = sconf ? sconf->error_log_format : NULL;
             done = 1;
         }