From b03bd99110f5fd7dc620c6327374fec8edec15c9 Mon Sep 17 00:00:00 2001 From: Chris Mague Date: Wed, 26 Sep 2018 09:55:16 -0700 Subject: [PATCH] more verbose logging --- plugin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin.go b/plugin.go index 4e091e7..a7928af 100644 --- a/plugin.go +++ b/plugin.go @@ -197,6 +197,11 @@ func (p Plugin) Exec() error { }).Fatal("Failed to write file") } f.Write(out) + f.Sync() + logrus.WithFields(logrus.Fields{ + "file": c.Ofile, + "contenets": string(out), + }).Info("Logging output") f.Close() }