From 937c1263e7f23080d37af71bdca575f0c700ddbd Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 21 Feb 2023 15:21:12 -0600 Subject: [PATCH] debugPrint -> Logging.instance.log --- lib/services/coins/epiccash/epiccash_wallet.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/services/coins/epiccash/epiccash_wallet.dart b/lib/services/coins/epiccash/epiccash_wallet.dart index 8dd1bbcf3..522089a24 100644 --- a/lib/services/coins/epiccash/epiccash_wallet.dart +++ b/lib/services/coins/epiccash/epiccash_wallet.dart @@ -1017,16 +1017,19 @@ class EpicCashWallet extends CoinServiceAPI // Listening to server responses: bool isConnected = true; textSocketHandler.incomingMessagesStream.listen((inMsg) { - debugPrint('> webSocket got text message from server: "$inMsg" ' - '[ping: ${textSocketHandler.pingDelayMs}]'); + Logging.instance.log( + '> webSocket got text message from server: "$inMsg" ' + '[ping: ${textSocketHandler.pingDelayMs}]', + level: LogLevel.Info); }); // Connecting to server: final isTextSocketConnected = await textSocketHandler.connect(); if (!isTextSocketConnected) { // ignore: avoid_print - debugPrint( - 'Connection to [$websocketConnectionUri] failed for some reason!'); + Logging.instance.log( + 'Connection to [$websocketConnectionUri] failed for some reason!', + level: LogLevel.Error); isConnected = false; } return isConnected;