]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Sean Critica <sean.critica@gmail.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 12 Jun 2010 10:25:31 +0000 (22:25 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 12 Jun 2010 10:25:31 +0000 (22:25 +1200)
Bug 2943: ICAP tokens not logged when using multiple access

src/access_log.cc

index c44c12d98016a75aafe78ae4965ebddb79044464..fc4acfa9324624eff2818a94dca93c6ba3efe719 100644 (file)
@@ -2092,6 +2092,13 @@ accessLogInit(void)
 
     assert(sizeof(log_tags) == (LOG_TYPE_MAX + 1) * sizeof(char *));
 
+#if USE_ADAPTATION
+    alLogformatHasAdaptToken = false;
+#endif
+#if ICAP_CLIENT
+    alLogformatHasIcapToken = false;
+#endif
+
     for (log = Config.Log.accesslogs; log; log = log->next) {
         if (log->type == CLF_NONE)
             continue;
@@ -2100,12 +2107,6 @@ accessLogInit(void)
 
         LogfileStatus = LOG_ENABLE;
 
-#if USE_ADAPTATION
-        alLogformatHasAdaptToken = false;
-#endif
-#if ICAP_CLIENT
-        alLogformatHasIcapToken = false;
-#endif
 #if USE_ADAPTATION || ICAP_CLIENT
         for (logformat_token * curr_token = (log->logFormat?log->logFormat->format:NULL); curr_token; curr_token = curr_token->next) {
 #if USE_ADAPTATION