Update dependency logger to v2 #36

Merged
Varakh merged 2 commits from renovate/logger-2.x into develop 2023-07-26 20:51:55 +00:00
4 changed files with 7 additions and 7 deletions
Showing only changes of commit fc0fe31b70 - Show all commits

View file

@ -108,7 +108,7 @@ class HistoryModel extends BaseModel {
} else {
errorMessage = translate('app.unknown_error');
setStateView(ViewState.idle);
_logger.e('An unknown error occurred', e);
_logger.e('An unknown error occurred', error: e);
rethrow;
}
}
@ -156,7 +156,7 @@ class HistoryModel extends BaseModel {
} else {
errorMessage = translate('app.unknown_error');
setStateView(ViewState.idle);
_logger.e('An unknown error occurred', e);
_logger.e('An unknown error occurred', error: e);
rethrow;
}
}

View file

@ -163,7 +163,7 @@ class LoginModel extends BaseModel {
errorMessage = translate('app.unknown_error');
_sessionService.logout();
setStateView(ViewState.idle);
_logger.e('An unknown error occurred', e);
_logger.e('An unknown error occurred', error: e);
rethrow;
}

View file

@ -77,7 +77,7 @@ class ProfileModel extends BaseModel {
setStateBoolValue(_configurationButtonLoading, false);
_sessionService.logout();
setStateBoolValue(_configurationButtonLoading, false);
_logger.e('An unknown error occurred', e);
_logger.e('An unknown error occurred', error: e);
rethrow;
}
}

View file

@ -152,9 +152,9 @@ class UploadModel extends BaseModel {
))
?.files;
} on PlatformException catch (e) {
_logger.e('Unsupported operation', e);
_logger.e('Unsupported operation', error: e);
} catch (ex) {
_logger.e('An unknown error occurred', ex);
_logger.e('An unknown error occurred', error: ex);
}
loadingPath = false;
@ -238,7 +238,7 @@ class UploadModel extends BaseModel {
errorMessage = translate('app.unknown_error');
setStateMessage(null);
setStateView(ViewState.idle);
_logger.e('An unknown error occurred', e);
_logger.e('An unknown error occurred', error: e);
rethrow;
}
}