mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Windows logfile should follow -home by default (fixes #918)
This commit is contained in:
parent
6820c0a5d7
commit
2ba4b235fc
@ -234,6 +234,13 @@ func main() {
|
|||||||
confDir = defConfDir
|
confDir = defConfDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if confDir != defConfDir && filepath.Dir(logFile) == defConfDir {
|
||||||
|
// The user changed the config dir with -home, but not the log file
|
||||||
|
// location. In this case we assume they meant for the logfile to
|
||||||
|
// still live in it's default location *relative to the config dir*.
|
||||||
|
logFile = filepath.Join(confDir, "syncthing.log")
|
||||||
|
}
|
||||||
|
|
||||||
if showVersion {
|
if showVersion {
|
||||||
fmt.Println(LongVersion)
|
fmt.Println(LongVersion)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user