From 8577fa1ae90e8c2d6cfb95d5119e037900435a37 Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 28 Dec 2021 14:39:29 +0100 Subject: [PATCH] Ensure errors and warnings are cached (#2131) --- cmd/root.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index f1f0ecc59..25d79973c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,8 +24,7 @@ var ( log = util.NewLogger("main") cfgFile string - ignoreErrors = []string{"warn", "error", "fatal"} // don't add to cache - ignoreMqtt = []string{"releaseNotes"} // excessive size may crash certain brokers + ignoreMqtt = []string{"releaseNotes"} // excessive size may crash certain brokers ) // rootCmd represents the base command when called without any subcommands @@ -171,7 +170,7 @@ func run(cmd *cobra.Command, args []string) { // value cache cache := util.NewCache() - go cache.Run(pipe.NewDropper(ignoreErrors...).Pipe(tee.Attach())) + go cache.Run(tee.Attach()) // setup database if conf.Influx.URL != "" {