fix: Logger

This commit is contained in:
Christian Pauly 2020-12-19 15:33:50 +01:00
parent 992bdaa698
commit 0abebddf53
1 changed files with 9 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import 'package:universal_html/prefer_universal/html.dart' as html;
import 'package:url_launcher/url_launcher.dart';
import 'package:path_provider/path_provider.dart';
import 'package:http/http.dart' as http;
import 'package:logger/logger.dart';
/*import 'package:fluffychat/views/chat.dart';
import 'package:fluffychat/app_config.dart';
import 'package:dbus/dbus.dart';
@ -308,6 +309,7 @@ class MatrixState extends State<Matrix> {
}
void initMatrix() {
Logs().level = Level.verbose;
LogConsole.init();
clientName =
'${AppConfig.applicationName} ${kIsWeb ? 'Web' : Platform.operatingSystem}';
@ -440,9 +442,13 @@ class MatrixState extends State<Matrix> {
@override
Widget build(BuildContext context) {
return _InheritedMatrix(
data: this,
child: widget.child,
return LogConsoleOnShake(
dark: true,
debugOnly: false,
child: _InheritedMatrix(
data: this,
child: widget.child,
),
);
}
}