From: John Wolfe Date: Fri, 6 May 2022 21:28:00 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.1.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9da69911d845d36515f8c45f6d5840f934a1189;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index 6eab2f1b5..94841f8cb 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -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.