Skip to content

Commit

Permalink
Fixed bug when log file path is cutomized in XML file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-raoul committed May 18, 2018
1 parent 0242456 commit d139ad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CmisSync.Lib/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ public void RemoveFolder(string repoName)
/// </summary>
public string GetLogFilePath()
{
return Path.Combine(ConfigPath, "CmisSync_log.txt");
XmlNode appender = configXml.Log4Net.SelectSingleNode("appender");
XmlNode file = appender.SelectSingleNode("file");
return file.Attributes["value"].Value;
}

private string GetLogLevel()
Expand Down
2 changes: 1 addition & 1 deletion CmisSync.Lib/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static string CurrentConfigFile
}
else
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "cmissync", "config.xml");
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "cmissync", "config.xml");
}
}

Expand Down

0 comments on commit d139ad5

Please sign in to comment.