1

I am using BugSnag (version 1.*) and Laravel (version 4.1) and I cannot for the life of me figure out where to set setFilters (so that it hides entered password, credit card information, etc).

I've tried setting it under Bugsnag::setBeforeNotifyFunction, I've tried configuring it in the config.php for BugSnag. I see how to do it in the documentation, like this:

$bugsnag->setFilters(array('password', 'credit_card'));

but I have no idea how to do it with Laravel.

4

1 回答 1

2

我想出了答案。

您所要做的就是在您的 app/start/global.php (或其他一些全局加载位置)中:

Bugsnag::setFilters(array('password', 'credit_card'));
于 2014-07-31T16:16:33.497 回答