fix: Logger

This commit is contained in:
Christian Pauly 2020-12-19 15:33:50 +01:00
parent 992bdaa698
commit 0abebddf53

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