Log stack traces
This commit is contained in:
parent
53b81e537e
commit
a9b98e5cc3
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue