From bb1c21ff73153633eb4b62f35aaaa610165a3862 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 18 May 2017 23:22:27 +0200 Subject: Added prints on startup. --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0a0ad0a..eeb4036 100644 --- a/main.go +++ b/main.go @@ -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) -- cgit 1.2.3-korg