Skip to content

Commit dbca4fe

Browse files
committed
Add logging - to be removed
1 parent d96ffbf commit dbca4fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/fields/mappings.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,22 +609,22 @@ func (v *MappingValidator) matchingWithDynamicTemplates(currentPath string, defi
609609
continue
610610
}
611611

612-
// logger.Debugf("Found dynamic template matched: %s", template.name)
612+
logger.Warnf("> Found dynamic template matched: %s", template.name)
613613

614-
// logger.Debugf("> Check parameters (%q): %q", templateName, currentPath)
614+
logger.Debugf("> Check parameters (%q): %q", template.name, currentPath)
615615
// Check that all parameters match (setting no dynamic templates to avoid recursion)
616616
errs := v.validateObjectMappingAndParameters(template.mapping, definition, currentPath, []map[string]any{}, true)
617617
if errs != nil {
618618
// Look for another dynamic template
619-
// logger.Debugf("invalid dynamic template for %q:\n%s", currentPath, errs.Unique())
619+
logger.Warnf(">> Invalid dynamic template for %q:\n%s", currentPath, errs.Unique())
620620
continue
621621
}
622622

623-
// logger.Debugf("Valid template for path %q: %q", currentPath, template.name)
623+
logger.Warnf("> Valid template for path %q: %q", currentPath, template.name)
624624
return nil
625625
}
626626

627-
// logger.Debugf(">> No template matching for path: %q", currentPath)
627+
logger.Warnf(">> No template matching for path: %q", currentPath)
628628
return fmt.Errorf("no template matching for path: %q", currentPath)
629629
}
630630

0 commit comments

Comments
 (0)