Adds logging for transformer start, log conversions, log persistance

This commit is contained in:
Andrew J Yao 2019-09-10 18:15:06 -07:00 committed by Ian Norden
parent bf26198458
commit e26fa12af0
2 changed files with 2 additions and 0 deletions

View File

@ -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 == "" {

View File

@ -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
}