mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 21:58:46 -04:00
log fix for ios and ability to delete orphaned chats
This commit is contained in:
parent
47287ba8d4
commit
22390f31ff
5 changed files with 34 additions and 24 deletions
|
@ -9,7 +9,6 @@ import 'package:loggy/loggy.dart';
|
|||
import 'package:veilid_support/veilid_support.dart';
|
||||
|
||||
import '../veilid_processor/views/developer.dart';
|
||||
import '../theme/views/responsive.dart';
|
||||
import 'state_logger.dart';
|
||||
|
||||
String wrapWithLogColor(LogLevel? level, String text) {
|
||||
|
@ -112,13 +111,16 @@ class CallbackPrinter extends LoggyPrinter {
|
|||
@override
|
||||
void onLog(LogRecord record) {
|
||||
final out = record.pretty();
|
||||
//if (isDesktop) {
|
||||
debugPrintSynchronously(out);
|
||||
//}
|
||||
if (Platform.isAndroid) {
|
||||
debugPrint(out);
|
||||
} else {
|
||||
debugPrintSynchronously(out);
|
||||
}
|
||||
globalDebugTerminal.write('$out\n'.replaceAll('\n', '\r\n'));
|
||||
callback?.call(record);
|
||||
}
|
||||
|
||||
// ignore: use_setters_to_change_properties
|
||||
void setCallback(void Function(LogRecord)? cb) {
|
||||
callback = cb;
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@ import 'loggy.dart';
|
|||
|
||||
const Map<String, LogLevel> _blocChangeLogLevels = {
|
||||
'ConnectionStateCubit': LogLevel.off,
|
||||
//'ActiveSingleContactChatBlocMapCubit': LogLevel.off,
|
||||
//'ActiveConversationsBlocMapCubit': LogLevel.off,
|
||||
'ActiveSingleContactChatBlocMapCubit': LogLevel.off,
|
||||
'ActiveConversationsBlocMapCubit': LogLevel.off,
|
||||
'PersistentQueueCubit<Message>': LogLevel.off,
|
||||
'TableDBArrayProtobufCubit<ReconciledMessage>': LogLevel.off,
|
||||
'DHTLogCubit<Message>': LogLevel.off,
|
||||
//'SingleContactMessagesCubit': LogLevel.off,
|
||||
'SingleContactMessagesCubit': LogLevel.off,
|
||||
'ChatComponentCubit': LogLevel.off,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue