From ba55fab04add1c6795587c070b21872cd65dfbe9 Mon Sep 17 00:00:00 2001 From: Steffen Siering Date: Thu, 30 Jan 2020 22:24:47 +0100 Subject: [PATCH] Remove debug logging from keystore (#15946) The keystore is loaded before the configuration file is loaded, which means that some debug messages are never printed, because logging is still not initialized (logs will be discarded). (cherry picked from commit 56924a3f7c69afa12ac92c284a97d4282dac13f4) --- libbeat/keystore/keystore.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libbeat/keystore/keystore.go b/libbeat/keystore/keystore.go index 74790d934b2..98ff30249af 100644 --- a/libbeat/keystore/keystore.go +++ b/libbeat/keystore/keystore.go @@ -22,7 +22,6 @@ import ( "fmt" "github.com/elastic/beats/libbeat/common" - "github.com/elastic/beats/libbeat/logp" ucfg "github.com/elastic/go-ucfg" ) @@ -87,7 +86,6 @@ func Factory(cfg *common.Config, defaultPath string) (Keystore, error) { config.Path = defaultPath } - logp.Debug("keystore", "Loading file keystore from %s", config.Path) keystore, err := NewFileKeystore(config.Path) return keystore, err } @@ -122,7 +120,6 @@ func ResolverWrap(keystore Keystore) func(string) (string, error) { return "", err } - logp.Debug("keystore", "accessing key '%s' from the keystore", keyName) return string(v), nil } }