]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/icap/icap_log.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / adaptation / icap / icap_log.cc
index 7a1f4d93a40d2080ad37d57025053c8b21d7ec6b..77b1d868e14a52274b0f2eed57d20b6951974d30 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #include "squid.h"
 #include "AccessLogEntry.h"
 #include "acl/FilledChecklist.h"
@@ -44,7 +52,7 @@ icapLogRotate()
 {
     for (CustomLog* log = Config.Log.icaplogs; log; log = log->next) {
         if (log->logfile) {
-            logfileRotate(log->logfile);
+            logfileRotate(log->logfile, Config.Log.rotateNumber);
         }
     }
 }
@@ -60,3 +68,4 @@ void icapLogLog(AccessLogEntry::Pointer &al)
         accessLogLogTo(Config.Log.icaplogs, al, &checklist);
     }
 }
+