Skip to content

Commit

Permalink
scrubFields config param added
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaratsky committed Jul 30, 2015
1 parent 367e004 commit 9a22210
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RollbarComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RollbarComponent extends CApplicationComponent
public $includedErrno;
public $baseApiUrl;
public $rootAlias = 'application';
public $scrubFields = ['passwd', 'password', 'secret', 'auth_token', 'YII_CSRF_TOKEN'];

public function init()
{
Expand All @@ -27,6 +28,7 @@ public function init()
'included_errno' => $this->includedErrno,
'base_api_url' => $this->baseApiUrl,
'root' => !empty($this->rootAlias) ? Yii::getPathOfAlias($this->rootAlias) : '',
'scrub_fields' => $this->scrubFields,
),
false,
false);
Expand Down

0 comments on commit 9a22210

Please sign in to comment.