summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:17:04 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:19:43 +0200
commita52a4ddc7662b8a4d0b8a1fd7be88742d1379691 (patch)
tree8ebc560024f58489855eb2beac858183ad3e8e6d /main.go
parent4f8e078afa1e8152789bf8009bcf6f794bda18cc (diff)
Added prints on startup
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index 6594bdb..69f6676 100644
--- a/main.go
+++ b/main.go
@@ -132,16 +132,17 @@ func xdsApp(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)
+ fmt.Printf("Establishing connection with Syncthing...\n")
time.Sleep(2 * time.Second)
retry := 10
err = nil