This ties older config which do not set rotate=N to still use the value
of logfile_rotate. If set rotate=N overrides logfile_rotate and can be
any value 0 or up.
memConfigure();
/* Sanity checks */
+ if (Debug::rotateNumber < 0) {
+ Debug::rotateNumber = Config.Log.rotateNumber;
+ }
+
#if SIZEOF_OFF_T <= 4
if (Config.Store.maxObjectSize > 0x7FFF0000) {
debugs(3, 0, "WARNING: This Squid binary can not handle files larger than 2GB. Limiting maximum_object_size to just below 2GB");
NAME: debug_options
TYPE: eol
-DEFAULT: rotate=1 ALL,1
+DEFAULT: ALL,1
LOC: Debug::debugOptions
DOC_START
Logging options are set as section,level where each source file
The magic word "ALL" sets debugging levels for all sections.
We recommend normally running with "ALL,1".
- The rotate= option can be increased to keep more of these logs.
+ The rotate=N option can be used to keep more or less of these logs
+ than would otherwise be kept by logfile_rotate.
For most uses a single log should be enough to monitor current
events affecting Squid.
DOC_END
int Debug::Levels[MAX_DEBUG_SECTIONS];
int Debug::level;
char *Debug::cache_log = NULL;
-int Debug::rotateNumber = 1;
+int Debug::rotateNumber = -1;
FILE *debug_log = NULL;
static char *debug_log_file = NULL;
static int Ctx_Lock = 0;