From e5336d1201a521eb92210b965c4f2d62b66da8ff Mon Sep 17 00:00:00 2001 From: Mikhail Savochkin Date: Fri, 2 Nov 2018 14:03:53 +0600 Subject: [PATCH] More debug logs for start and stop commands --- start.go | 2 ++ stop.go | 1 + 2 files changed, 3 insertions(+) diff --git a/start.go b/start.go index 0d026118..763ba2cb 100644 --- a/start.go +++ b/start.go @@ -75,6 +75,8 @@ func (d *Daemon) execRESTStart(w http.ResponseWriter, r *http.Request) { if handleMarshalError(err, w) != nil { return } + + ptp.Log(ptp.Debug, "Executing start command: %+v", args) response := new(Response) err = d.run(&RunArgs{ IP: args.IP, diff --git a/stop.go b/stop.go index cc5afd7b..1102cbb5 100644 --- a/stop.go +++ b/stop.go @@ -55,6 +55,7 @@ func (d *Daemon) execRESTStop(w http.ResponseWriter, r *http.Request) { if handleMarshalError(err, w) != nil { return } + ptp.Log(ptp.Debug, "Executing stop command: %+v", args) response := new(Response) d.Stop(&DaemonArgs{ Hash: args.Hash,