1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Fixed logFilePath logic on OSX

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@595 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-06-24 12:20:23 +00:00
parent 1ab20897af
commit 7f878bb232

View File

@ -95,7 +95,8 @@ public class Settings {
public static void updateLoggingConfig() {
String logFilePath = Settings.getProperty("davmail.logFilePath");
// use default log file path on Mac OS X
if (logFilePath == null && System.getProperty("os.name").toLowerCase().startsWith("mac os x")) {
if ((logFilePath == null || logFilePath.length() == 0)
&& System.getProperty("os.name").toLowerCase().startsWith("mac os x")) {
logFilePath = System.getProperty("user.home") + "/Library/Logs/DavMail/davmail.log";
}