diff options
| author | Dan Engelbrecht <[email protected]> | 2023-10-27 10:56:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-27 10:56:49 +0200 |
| commit | 4f577070c09127e222de6276db04020113356792 (patch) | |
| tree | 76a19c9efce208ae772fbe67803f5abe453b5319 | |
| parent | 0.2.29 (diff) | |
| download | zen-4f577070c09127e222de6276db04020113356792.tar.xz zen-4f577070c09127e222de6276db04020113356792.zip | |
block sending error reports from sentry_sink to Sentry unless the log is actually an error log (#501)
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | src/zenserver/sentryintegration.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b2d93166..7f3a212ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## +- Bugfix: Block sending error reports from sentry_sink to Sentry unless the log is actually an error log + +## 0.2.29 - Feature: Add `skipdelete` parameter to `admin/gc` endpoint to do a dry run of GC - Feature: Add `--skipdelete` option to `zen gc` command to do a dry run of GC - Feature: New endpoint `/admin/flush ` to flush all storage - CAS, Cache and ProjectStore diff --git a/src/zenserver/sentryintegration.cpp b/src/zenserver/sentryintegration.cpp index 2c51c3b36..10a05c3c8 100644 --- a/src/zenserver/sentryintegration.cpp +++ b/src/zenserver/sentryintegration.cpp @@ -67,6 +67,10 @@ sentry_sink::~sentry_sink() void sentry_sink::sink_it_(const spdlog::details::log_msg& msg) { + if (msg.level != spdlog::level::err && msg.level != spdlog::level::critical) + { + return; + } try { std::string Message = fmt::format("{}\n{}({}) [{}]", msg.payload, msg.source.filename, msg.source.line, msg.source.funcname); |