From a9ffc1b05205759c6a842e4f9b88becc63cd866f Mon Sep 17 00:00:00 2001 From: fuwa Date: Tue, 25 Jun 2019 22:58:15 +0800 Subject: [PATCH] clean rpc exception log --- cyberwow/lib/controller/rpc.dart | 2 +- cyberwow/lib/state.dart | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cyberwow/lib/controller/rpc.dart b/cyberwow/lib/controller/rpc.dart index 97cd2fd..71d7200 100644 --- a/cyberwow/lib/controller/rpc.dart +++ b/cyberwow/lib/controller/rpc.dart @@ -52,7 +52,7 @@ Future rpc(String method) async { ); } catch (e) { - print(e); + // print(e); } return response; diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart index cf1cfef..c1ef782 100644 --- a/cyberwow/lib/state.dart +++ b/cyberwow/lib/state.dart @@ -156,12 +156,14 @@ class SyncingState extends HookedState { // final _offline = await rpc.offline(); // print('syncing: offline ${_offline}'); + final bool initState = line.contains('Initializing core'); if (initState) print('is init state'); if (_targetHeight == 0 && (!initState) && _height > minimumHeight) break; } + print('syncing: loop exit'); SyncedState _next = SyncedState(setState, getNotification, stdout, processOutput); _next.height = await rpc.height();