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

Add safe_repr option to serializer and expose serializer's whitelist_… #87

Merged
merged 2 commits into from
Dec 28, 2015

Conversation

coryvirok
Copy link
Contributor

…types param

This allows users to configure Rollbar to use repr(obj) during the
serialization stage.

@jfarrimo cc @brianr

…types param

This allows users to configure Rollbar to use `repr(obj)` during the
serialization stage.

@jfarrimo cc @brianr
@coryvirok
Copy link
Contributor Author

This addresses #80.

coryvirok added a commit that referenced this pull request Dec 28, 2015
Add safe_repr option to serializer and expose serializer's whitelist_…
@coryvirok coryvirok merged commit d530176 into master Dec 28, 2015
@@ -287,7 +287,8 @@ def _get_pylons_request():
'locals': {
'enabled': True,
'safe_repr': True,
'sizes': DEFAULT_LOCALS_SIZES
'sizes': DEFAULT_LOCALS_SIZES,
'whitelisted_types': []
Copy link
Member

Choose a reason for hiding this comment

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

Uh, is it whitelist_types or whitelisted_types? Looks like the param that SerializableTransform takes is the former. Any reason for them to be different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

'whitelisted_types' is what I want it to be however SerializableTransform uses 'whitelist_types'. I didn't want to cause a breaking change so I kept the later but used the new name for a new config option.

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.

None yet

2 participants