1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

Add --syslog flag to optionally log to syslog on capable platforms

This commit is contained in:
Nick Craig-Wood
2017-02-10 13:28:06 +00:00
parent ac1c041377
commit 666dae4229
10 changed files with 179 additions and 59 deletions

View File

@@ -254,7 +254,7 @@ func setDefaultFromEnv(name string) {
if err != nil {
log.Fatalf("Invalid value for environment variable %q: %v", key, err)
}
// log.Printf("Set default for %q from %q to %q (%v)", name, key, newValue, flag.Value)
Debugf(nil, "Set default for %q from %q to %q (%v)", name, key, newValue, flag.Value)
flag.DefValue = newValue
}
}