diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-05-18 23:22:27 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-05-18 23:22:27 +0200 |
commit | bb1c21ff73153633eb4b62f35aaaa610165a3862 (patch) | |
tree | dbcf60d787b13370e020c1d472477809cb13154c /main.go | |
parent | 96fae3e86cc98b3cca4e96c002a92d98f05eb5b7 (diff) |
Added prints on startup.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ package main import ( + "fmt" "log" "os" "time" @@ -54,14 +55,14 @@ func xdsAgent(cliCtx *cli.Context) error { if err != nil { return cli.NewExitError(err, 2) } - ctx.Log.Infof("Syncthing started (PID %d)", ctx.SThgCmd.Process.Pid) + fmt.Printf("Syncthing started (PID %d)\n", ctx.SThgCmd.Process.Pid) ctx.Log.Infof("Starting Syncthing-inotify...") ctx.SThgInotCmd, err = ctx.SThg.StartInotify() if err != nil { return cli.NewExitError(err, 2) } - ctx.Log.Infof("Syncthing-inotify started (PID %d)", ctx.SThgInotCmd.Process.Pid) + fmt.Printf("Syncthing-inotify started (PID %d)\n", ctx.SThgInotCmd.Process.Pid) // Establish connection with local Syncthing (retry if connection fail) time.Sleep(3 * time.Second) |