mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
debugPrint -> Logging.instance.log
This commit is contained in:
parent
a44dfe7650
commit
937c1263e7
1 changed files with 7 additions and 4 deletions
|
@ -1017,16 +1017,19 @@ class EpicCashWallet extends CoinServiceAPI
|
||||||
// Listening to server responses:
|
// Listening to server responses:
|
||||||
bool isConnected = true;
|
bool isConnected = true;
|
||||||
textSocketHandler.incomingMessagesStream.listen((inMsg) {
|
textSocketHandler.incomingMessagesStream.listen((inMsg) {
|
||||||
debugPrint('> webSocket got text message from server: "$inMsg" '
|
Logging.instance.log(
|
||||||
'[ping: ${textSocketHandler.pingDelayMs}]');
|
'> webSocket got text message from server: "$inMsg" '
|
||||||
|
'[ping: ${textSocketHandler.pingDelayMs}]',
|
||||||
|
level: LogLevel.Info);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Connecting to server:
|
// Connecting to server:
|
||||||
final isTextSocketConnected = await textSocketHandler.connect();
|
final isTextSocketConnected = await textSocketHandler.connect();
|
||||||
if (!isTextSocketConnected) {
|
if (!isTextSocketConnected) {
|
||||||
// ignore: avoid_print
|
// ignore: avoid_print
|
||||||
debugPrint(
|
Logging.instance.log(
|
||||||
'Connection to [$websocketConnectionUri] failed for some reason!');
|
'Connection to [$websocketConnectionUri] failed for some reason!',
|
||||||
|
level: LogLevel.Error);
|
||||||
isConnected = false;
|
isConnected = false;
|
||||||
}
|
}
|
||||||
return isConnected;
|
return isConnected;
|
||||||
|
|
Loading…
Reference in a new issue