mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-28 10:43:31 +02:00
[284787] [dstore] ability to disable RSECOMM_LOGFILE_MAX option
This commit is contained in:
parent
0935e353ff
commit
98e79b2e0c
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
* David McKnight (IBM) - [244876] [dstore] make DEBUG a non-final variable of the ServerLogger class
|
* David McKnight (IBM) - [244876] [dstore] make DEBUG a non-final variable of the ServerLogger class
|
||||||
* David McKnight (IBM) - [271914] [dstore] Setting debug on/off dynamically
|
* David McKnight (IBM) - [271914] [dstore] Setting debug on/off dynamically
|
||||||
* David McKnight (IBM) - [269908] [dstore] rsecomm.log file management
|
* David McKnight (IBM) - [269908] [dstore] rsecomm.log file management
|
||||||
|
* David McKnight (IBM) - [284787] [dstore] ability to disable RSECOMM_LOGFILE_MAX option
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.dstore.core.server;
|
package org.eclipse.dstore.core.server;
|
||||||
|
@ -135,7 +136,7 @@ public class ServerLogger implements IServerLogger
|
||||||
else {
|
else {
|
||||||
// if the file exists, check it's size
|
// if the file exists, check it's size
|
||||||
long fileSize = logFile.length();
|
long fileSize = logFile.length();
|
||||||
if (fileSize > logFileMax){
|
if (logFileMax > 0 && fileSize > logFileMax){ // if logFileMax is 0 or less, than always use the same file
|
||||||
// file too big, need a new one
|
// file too big, need a new one
|
||||||
suffix++;
|
suffix++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue