mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: debug page copy logs
This commit is contained in:
@@ -110,7 +110,7 @@ Future<void> _initData() async {
|
||||
void _setupDebug() {
|
||||
Logger.root.level = Level.ALL;
|
||||
Logger.root.onRecord.listen((record) {
|
||||
Pros.debug.addLog(record);
|
||||
DebugProvider.addLog(record);
|
||||
print(record);
|
||||
if (record.error != null) print(record.error);
|
||||
if (record.stackTrace != null) print(record.stackTrace);
|
||||
|
||||
Reference in New Issue
Block a user