Skip to content

Commit

Permalink
Move template and codec message to debug level (#4966)
Browse files Browse the repository at this point in the history
Both messages show up on startup of the Beat. I do not think they are required on the Info level, so they are moved to the Debug level.
  • Loading branch information
ruflin authored and Steffen Siering committed Aug 23, 2017
1 parent bd6981d commit 5613c5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions libbeat/outputs/codec/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/elastic/beats/libbeat/beat"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/libbeat/outputs/codec"
)

Expand Down Expand Up @@ -41,8 +40,6 @@ func init() {
}

func New(pretty bool) *Encoder {
logp.Info("load json codec")

e := &Encoder{pretty: pretty}
e.reset()
return e
Expand Down
2 changes: 1 addition & 1 deletion libbeat/template/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (l *Loader) Load() error {
// template if it exists. If you wish to not overwrite an existing template
// then use CheckTemplate prior to calling this method.
func (l *Loader) LoadTemplate(templateName string, template map[string]interface{}) error {
logp.Info("load template: %s", templateName)
logp.Debug("template", "Try loading template with name: %s", templateName)
path := "/_template/" + templateName
body, err := l.client.LoadJSON(path, template)
if err != nil {
Expand Down

0 comments on commit 5613c5f

Please sign in to comment.