Skip to content

Commit 922dcd7

Browse files
committed
sentry: set max_value_length=4096
So we can capture longer exception messages, e.g., Git and HgMO errors.
1 parent aaddf8e commit 922dcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_hg_sync/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def main() -> None:
8888
sentry_config = config.sentry
8989
if sentry_config and sentry_config.sentry_dsn:
9090
logger.info(f"Sentry DSN: {sentry_config.sentry_dsn}")
91-
sentry_sdk.init(sentry_config.sentry_dsn)
91+
sentry_sdk.init(sentry_config.sentry_dsn, max_value_length=4096)
9292
start_app(config, logger)
9393

9494

0 commit comments

Comments
 (0)