Habdle mistakes in card config

This commit is contained in:
Yegor Vialov
2020-05-04 14:47:47 +00:00
parent b5fbe7b86f
commit 814e0a8b00
2 changed files with 67 additions and 64 deletions

View File

@ -33,6 +33,9 @@ class Logger {
static void _writeToLog(ErrorLevel level, String message, dynamic stacktrace, bool skipCrashlytics) {
if (isInDebugMode) {
debugPrint('$message');
if (stacktrace != null) {
debugPrint('$stacktrace');
}
} else if (!skipCrashlytics) {
Crashlytics.instance.recordError('$message', stacktrace);
}