opt.: debug page copy logs

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-28 22:12:07 +08:00
parent c90d0e4b3b
commit 969643d3df
8 changed files with 14 additions and 21 deletions

View File

@@ -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);