Skip to content

Commit

Permalink
Ensure errors and warnings are cached (evcc-io#2131)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Dec 28, 2021
1 parent 4c09be6 commit 8577fa1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 8577fa1

Please sign in to comment.