diff options
author | Jakob Unterwurzacher | 2016-06-26 23:30:22 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-06-26 23:30:22 +0200 |
commit | 547ddf42648e55b3235343ac7d4eae27931362f8 (patch) | |
tree | dab115a13447594f267f6cbb56aace0d79df84ad /main.go | |
parent | a8a0d2d92c2ea98040e144c1a0d1fee4dd4b9d1d (diff) |
tlog: switch default logger to syslog
...unless "-nosyslog" is passed.
All gocryptfs messages already go to syslog, but the messages
that the go-fuse lib emits were still printed to stdout.
Fixes issue #13 ( https://github.com/rfjakob/gocryptfs/issues/13 )
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -347,6 +347,7 @@ func main() { tlog.Info.SwitchToSyslog(syslog.LOG_USER | syslog.LOG_INFO) tlog.Debug.SwitchToSyslog(syslog.LOG_USER | syslog.LOG_DEBUG) tlog.Warn.SwitchToSyslog(syslog.LOG_USER | syslog.LOG_WARNING) + tlog.SwitchLoggerToSyslog(syslog.LOG_USER | syslog.LOG_WARNING) } } // Wait for SIGINT in the background and unmount ourselves if we get it. |