Skip to content

Commit

Permalink
update some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nutmos committed Sep 29, 2023
1 parent dc0310c commit 55c982c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/template/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (l *ESLoader) Load(config TemplateConfig, info beat.Info, fields []byte, mi
func (l *ESLoader) loadTemplate(templateName string, template map[string]interface{}) error {
sameTemplate, sameTemplateErr := l.sameAsExistingTemplate(templateName, template)
if sameTemplateErr != nil {
l.log.Infof("Get template %s from Elasticsearch failed. Template check will be ignored.", templateName)
l.log.Warnf("Get template %s from Elasticsearch failed. Template check will be ignored: %v", templateName, sameTemplateErr)
} else {
if sameTemplate {
l.log.Infof("Template %s is already present in Elasticsearch, skipping...", templateName)
Expand Down

0 comments on commit 55c982c

Please sign in to comment.