Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,15 @@ def main() -> int:
setup_logging(args.log_directory, args.select_output)
load_environment_variables()
if sentry_sdk:
sentry_sdk.init()
from sentry_sdk.integrations.logging import LoggingIntegration

sentry_sdk.init(
integrations=[
# Not enabled by default since sentry-sdk 3.0.
# level=None: don't ship every INFO line as a Sentry log.
LoggingIntegration(level=None, event_level=logging.ERROR),
]
)

if args.select_output is None:
return build_docs_with_lock(args, "build_docs.lock")
Expand Down
Loading