output message about logs

This commit is contained in:
AJ ONeal 2019-07-04 03:02:27 -06:00
父節點 f1e3cf1b9c
當前提交 829247b4c0
共有 1 個文件被更改,包括 3 次插入1 次删除

查看文件

@ -133,6 +133,8 @@ func add() {
fmt.Fprintf(os.Stderr, "Use 'sudo' to add service as a privileged system service.\n")
fmt.Fprintf(os.Stderr, "Use '--user' to add service as an user service.\n")
}
fmt.Printf("Once started, logs will be found at:\n\t%s\n", conf.Logdir)
}
func run() {
@ -180,7 +182,7 @@ func run() {
}
s.Normalize(false)
//fmt.Fprintf(os.Stdout, "Logdir: %s\n", s.Logdir)
fmt.Printf("All output will be directed to the logs at:\n\t%s\n", s.Logdir)
err = os.MkdirAll(s.Logdir, 0755)
if nil != err {
fmt.Fprintf(os.Stderr, "%s\n", err)