Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Set log level to error for spammy tests #2968

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

philipphofmann
Copy link
Member

@philipphofmann philipphofmann commented Apr 27, 2023

Set log level to error for testPeformanceOfSyncToSentryCrash and testBreadcrumbCapLimit to avoid spamming the raw test logs.

#skip-changelog

Set log level to error for testPeformanceOfSyncToSentryCrash to avoid
spamming the raw test logs.
@philipphofmann philipphofmann changed the title test: Set log level to error performance scope test test: Set log level to error for spammy tests Apr 27, 2023
Comment on lines +309 to +319
// To avoid spamming the test logs
SentryLog.configure(true, diagnosticLevel: .error)

let scope = fixture.scope
scope.add(SentryCrashScopeObserver(maxBreadcrumbs: 100))

self.measure {
modifyScope(scope: scope)
}

setTestDefaultLogLevel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: Teardown maybe?

@philipphofmann philipphofmann merged commit 861d361 into main Apr 27, 2023
@philipphofmann philipphofmann deleted the test/log-level-testPeformanceOfSyncToSentryCrash branch April 27, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants