From e26fa12af0e6fb529cf838f033195370ab89f1d3 Mon Sep 17 00:00:00 2001 From: Andrew J Yao <1547809+yaoandrew@users.noreply.github.com> Date: Tue, 10 Sep 2019 18:15:06 -0700 Subject: [PATCH] Adds logging for transformer start, log conversions, log persistance --- cmd/compose.go | 1 + libraries/shared/factories/event/transformer.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/compose.go b/cmd/compose.go index 35d8cae1..5450886c 100644 --- a/cmd/compose.go +++ b/cmd/compose.go @@ -143,6 +143,7 @@ func prepConfig() { names := viper.GetStringSlice("exporter.transformerNames") transformers := make(map[string]config.Transformer) for _, name := range names { + LogWithCommand.Debug("Configuring " + name + " transformer") transformer := viper.GetStringMapString("exporter." + name) p, pOK := transformer["path"] if !pOK || p == "" { diff --git a/libraries/shared/factories/event/transformer.go b/libraries/shared/factories/event/transformer.go index 70339f1c..d6c2c4ea 100644 --- a/libraries/shared/factories/event/transformer.go +++ b/libraries/shared/factories/event/transformer.go @@ -54,6 +54,7 @@ func (transformer Transformer) Execute(logs []core.HeaderSyncLog) error { logrus.Errorf("error persisting %v record: %v", transformerName, err) return err } + log.Debug("Persisted log for " + transformerName) return nil }