meadsteve / MonoSnag

🐛 Monolog handler for bugsnag.
MIT License
20 stars 14 forks source link

Bugsnag expects notifyError not notify() #3

Closed wjlroe closed 10 years ago

wjlroe commented 10 years ago

The notify() function requires a Bugsnag_Error object.

The current Bugsnag client library dies when you send a string to $client->notify() since it expects a Bugsnag_Error object. The correct function to call is notifyError().

This uses severity for the name of the error because I'm not sure what to use for that.

meadsteve commented 10 years ago

Thanks @wjlroe . Looks good. I'm not sure the severity is ideal for the first argument of notifyError() but at the moment I think it's the best fit.