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() }