Skip to content

Commit

Permalink
Revert "Ensure errors and warnings are cached"
Browse files Browse the repository at this point in the history
This reverts commit cc4ffdb.
  • Loading branch information
andig committed Jan 3, 2022
1 parent 2f278b4 commit 3bac55c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ var (
log = util.NewLogger("main")
cfgFile string

ignoreMqtt = []string{"releaseNotes"} // excessive size may crash certain brokers
ignoreErrors = []string{"warn", "error", "fatal"} // don't add to cache
ignoreMqtt = []string{"releaseNotes"} // excessive size may crash certain brokers
)

// rootCmd represents the base command when called without any subcommands
Expand Down Expand Up @@ -170,7 +171,7 @@ func run(cmd *cobra.Command, args []string) {

// value cache
cache := util.NewCache()
go cache.Run(tee.Attach())
go cache.Run(pipe.NewDropper(ignoreErrors...).Pipe(tee.Attach()))

// setup database
if conf.Influx.URL != "" {
Expand Down

0 comments on commit 3bac55c

Please sign in to comment.