mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-06-27 08:11:15 -04:00
Improved latency and reliability testing
This commit is contained in:
parent
b6d6c8127a
commit
1a594d0d6f
46 changed files with 995 additions and 314 deletions
|
@ -1,8 +1,8 @@
|
|||
// ignore_for_file: prefer_single_quotes
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'package:ansicolor/ansicolor.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:loggy/loggy.dart';
|
||||
import 'package:veilid/veilid.dart';
|
||||
|
||||
|
@ -84,7 +84,14 @@ class CallbackPrinter extends LoggyPrinter {
|
|||
|
||||
@override
|
||||
void onLog(LogRecord record) {
|
||||
debugPrint(record.pretty());
|
||||
final out = record.pretty().replaceAll('\uFFFD', '');
|
||||
|
||||
if (!kIsWeb && Platform.isAndroid) {
|
||||
debugPrint(out);
|
||||
} else {
|
||||
debugPrintSynchronously(out);
|
||||
}
|
||||
|
||||
callback?.call(record);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue