Log stack traces

This commit is contained in:
Vishnu Mohandas 2021-04-01 23:59:37 +05:30
parent 53b81e537e
commit a9b98e5cc3
2 changed files with 5 additions and 3 deletions

View file

@ -36,6 +36,7 @@ class PasswordEntryPage extends StatefulWidget {
class _PasswordEntryPageState extends State<PasswordEntryPage> {
static const kPasswordStrengthThreshold = 0.4;
final _logger = Logger("PasswordEntry");
final _passwordController1 = TextEditingController(),
_passwordController2 = TextEditingController();
double _passwordStrength = 0;
@ -218,7 +219,8 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
Navigator.of(context).popUntil((route) => route.isFirst);
}
}
} catch (e) {
} catch (e, s) {
_logger.severe(e, s);
await dialog.hide();
showGenericErrorDialog(context);
}

View file

@ -286,8 +286,8 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
try {
recoveryKey = await _getOrCreateRecoveryKey();
await dialog.hide();
} catch (e) {
Logger("SecuritySection").severe(e);
} catch (e, s) {
Logger("SecuritySection").severe(e, s);
await dialog.hide();
showGenericErrorDialog(context);
return;