mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
[366220] Log_To_File no longer default value for log_location in rsecomm.properties
This commit is contained in:
parent
b4bce4c9b9
commit
bb171e9c41
1 changed files with 5 additions and 3 deletions
|
@ -24,6 +24,7 @@
|
|||
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
|
||||
* Noriaki Takatsu (IBM) - [341578] [dstore] ServerLogger is looped when IOError happens
|
||||
* David McKnight (IBM) - [351993] [dstore] not able to connect to server if .eclipse folder not available
|
||||
* David McKnight (IBM) - [366220] Log_To_File no longer default value for log_location in rsecomm.properties
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.core.server;
|
||||
|
@ -92,8 +93,6 @@ public class ServerLogger implements IServerLogger
|
|||
} catch (Exception e) {
|
||||
// Just use logging defaults: log_level = 0, log to file
|
||||
//e.printStackTrace();
|
||||
logToFile = false;
|
||||
_logFileStream = new PrintWriter(System.out);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,7 +102,10 @@ public class ServerLogger implements IServerLogger
|
|||
if (_logFileStream == null) {
|
||||
if (logToFile) {
|
||||
try {
|
||||
File _logFile = getLogFile("rsecomm"); //$NON-NLS-1$
|
||||
File _logFile = getLogFile("rsecomm"); //$NON-NLS-1$
|
||||
if (!_logFile.exists()){
|
||||
_logFile.createNewFile();
|
||||
}
|
||||
if (_logFile != null && _logFile.canWrite()){
|
||||
_logFileStream = new PrintWriter(new FileOutputStream(_logFile));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue