motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.77k stars 319 forks source link

Question: Is it possible to suppress log messages for StatsGo #481

Open NicklasWallgren opened 2 years ago

NicklasWallgren commented 2 years ago

Hey, is it possible to suppress the log messages for StatsGo?

[StatsGo] 2022/01/11 08:07:54 Stats counter incremented metric=total.round-ok
nox-4O4 commented 1 year ago

You can suppress the stats messages by setting stats.dsn to something other than log:// (the default value).

E.g., put following in janus.toml:

[stats]
  dsn = "noop://"