Skip to content

Commit

Permalink
Obviously handle scrub_fields in rollbar.init() (#235)
Browse files Browse the repository at this point in the history
* Obviously handle scrub_fields in rollbar.init()

* Update __init__.py
  • Loading branch information
veryuncommonname authored and rokob committed Jun 15, 2018
1 parent c291f37 commit 60cdec9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def _get_pylons_request():

## public api

def init(access_token, environment='production', **kw):
def init(access_token, environment='production', scrub_fields=None, **kw):
"""
Saves configuration variables in this module's SETTINGS.
Expand All @@ -308,6 +308,8 @@ def init(access_token, environment='production', **kw):

SETTINGS['access_token'] = access_token
SETTINGS['environment'] = environment
if scrub_fields is not None:
SETTINGS['scrub_fields'] = list(scrub_fields)

if SETTINGS.get('allow_logging_basic_config'):
logging.basicConfig()
Expand Down

0 comments on commit 60cdec9

Please sign in to comment.