fix: Add log trace to send log to Sentry and print to web console for validate refresh token
This commit is contained in:
@@ -81,14 +81,18 @@ void _internalLog(
|
||||
}
|
||||
|
||||
if (shouldSentry) {
|
||||
unawaited(
|
||||
SentryManager.instance.captureException(
|
||||
exception ?? rawMessage,
|
||||
stackTrace: stackTrace,
|
||||
message: rawMessage,
|
||||
extras: extras,
|
||||
),
|
||||
);
|
||||
if (level == Level.trace) {
|
||||
SentryManager.instance.captureMessage(rawMessage, extras: extras);
|
||||
} else {
|
||||
unawaited(
|
||||
SentryManager.instance.captureException(
|
||||
exception ?? rawMessage,
|
||||
stackTrace: stackTrace,
|
||||
message: rawMessage,
|
||||
extras: extras,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +136,9 @@ void _printWebConsole(Level level, String value) {
|
||||
}
|
||||
|
||||
bool _shouldReportToSentry(Level level) {
|
||||
return level == Level.error || level == Level.critical;
|
||||
return level == Level.error ||
|
||||
level == Level.critical ||
|
||||
level == Level.trace;
|
||||
}
|
||||
|
||||
void logError(
|
||||
|
||||
Reference in New Issue
Block a user