]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)
open-vm-tools/lib/include/log.h

index 6eab2f1b5f74d6f7cee21f863d3c801776669faa..94841f8cba0567771a79298c2117e7623fa6bc2b 100644 (file)
@@ -651,17 +651,24 @@ Bool
 Log_GetFileObject(const LogOutput *output,
                   LogFileObject *result);
 
-#if defined(VMX86_SERVER)
-#define LOG_KEEPOLD 6  // Old log files to keep around; ESX value
-#else
-#define LOG_KEEPOLD 3  // Old log files to keep around; non-ESX value
-#endif
-
 #define LOG_NO_KEEPOLD                 0  // Keep no old log files
 #define LOG_NO_ROTATION_SIZE           0  // Do not rotate based on file size
 #define LOG_NO_THROTTLE_THRESHOLD      0  // No threshold before throttling
 #define LOG_NO_BPS_LIMIT               0xFFFFFFFF  // unlimited input rate
 
+/*
+ * The defaults for how many older log files to kept around, and what to do
+ * with rotation-by-size.
+ */
+
+#if defined(VMX86_SERVER)
+#define LOG_DEFAULT_KEEPOLD       10
+#define LOG_DEFAULT_ROTATION_SIZE 2048000
+#else
+#define LOG_DEFAULT_KEEPOLD       3
+#define LOG_DEFAULT_ROTATION_SIZE LOG_NO_ROTATION_SIZE
+#endif
+
 
 /*
  * Assemble a line.