mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05: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:
parent
1ab20897af
commit
7f878bb232
@ -95,7 +95,8 @@ public class Settings {
|
|||||||
public static void updateLoggingConfig() {
|
public static void updateLoggingConfig() {
|
||||||
String logFilePath = Settings.getProperty("davmail.logFilePath");
|
String logFilePath = Settings.getProperty("davmail.logFilePath");
|
||||||
// use default log file path on Mac OS X
|
// 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";
|
logFilePath = System.getProperty("user.home") + "/Library/Logs/DavMail/davmail.log";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user