Don't send any debugs to Sentry (#8533)

* Don't send any debugs to Sentry

* Fix tests
This commit is contained in:
Eric Bailey
2025-06-20 11:44:39 -05:00
committed by GitHub
parent aeafb14fb4
commit bc95c0e50c
2 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
import {isNetworkError} from '#/lib/strings/errors'
import {Sentry} from '#/logger/sentry/lib'
import {LogLevel, Transport} from '#/logger/types'
import {LogLevel, type Transport} from '#/logger/types'
import {prepareMetadata} from '#/logger/util'
export const sentryTransport: Transport = (
@@ -10,6 +10,9 @@ export const sentryTransport: Transport = (
{type, tags, ...metadata},
timestamp,
) => {
// Skip debug messages entirely for now - esb
if (level === LogLevel.Debug) return
const meta = {
__context__: context,
...prepareMetadata(metadata),