Closed TRemigi closed 1 year ago
Hey @TRemigi, Thanks for reporting this issue. We'll look into it and get back to you with an update.
@TRemigi
A new release fixing this issue is out now @ pub.dev:
I appreciate you reporting this issue, and if you find anything else, don't hesitate reporting, we'll do our best to take care of it asap.
Items logged using
Rollbar.warn()
,Rollbar.error()
, andRollbar.critical()
, aren't categorized as the correct level depending on the type of thedynamic error
argument.For instance, if I execute
Rollbar.warn('Test error', Stacktrace.empty);
, the resulting item is set to theinfo
level in my project. If I instead excecuteRollbar.warn(Exception('Test error'), Stacktrace.empty);
, the item is correctly set to thewarning
level.Similar things seem to happen when using
Rollbar.error()
- they end up being set toinfo
if aString
is passed, andwarning
if anException
is passed. I assume the only way to get the result I would expect is to pass anError
object.This behavior is bizarre and confusing, and on top of that the documentation provided no help when I began trying to find out why the items weren't the correct levels based on the methods I was using.