Skip to content

Commit e531768

Browse files
committed
refactor: replace raw print() calls with logging in main.dart
1 parent 51db6c7 commit e531768

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

lib/main.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,18 @@ void main(List<String> args) async {
259259
MwebdService.instance
260260
.logsStream(CryptoCurrencyNetwork.main)
261261
.then(
262-
(stream) =>
263-
stream.listen((line) => print("[MWEBD: MAINNET]: $line")),
262+
(stream) => stream.listen(
263+
(line) => Logging.instance.d("[MWEBD: MAINNET]: $line"),
264+
),
264265
),
265266
);
266267
unawaited(
267268
MwebdService.instance
268269
.logsStream(CryptoCurrencyNetwork.test)
269270
.then(
270-
(stream) =>
271-
stream.listen((line) => print("[MWEBD: TESTNET]: $line")),
271+
(stream) => stream.listen(
272+
(line) => Logging.instance.d("[MWEBD: TESTNET]: $line"),
273+
),
272274
),
273275
);
274276
}

0 commit comments

Comments
 (0)