From edc16473bfdafc0f5fe546610d3b0fe0eecdd080 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Thu, 5 Jul 2018 14:16:44 +0100 Subject: [PATCH] Add temporary debug prints to identify devicelab failures (#19093) --- dev/devicelab/lib/tasks/microbenchmarks.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/devicelab/lib/tasks/microbenchmarks.dart b/dev/devicelab/lib/tasks/microbenchmarks.dart index ded70a82d1..2b93b24194 100644 --- a/dev/devicelab/lib/tasks/microbenchmarks.dart +++ b/dev/devicelab/lib/tasks/microbenchmarks.dart @@ -128,8 +128,11 @@ Future> _readJsonResults(Process process) { process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically final String jsonOutput = jsonBuf.toString(); try { + print('[DEBUG:DANTUP] Completing successfully'); completer.complete(json.decode(jsonOutput)); + print('[DEBUG:DANTUP] (done)'); } catch (ex) { + print('[DEBUG:DANTUP] Decoding JSON failed ($ex). JSON string was: $jsonOutput'); completer.completeError('Decoding JSON failed ($ex). JSON string was: $jsonOutput'); } return; @@ -145,6 +148,7 @@ Future> _readJsonResults(Process process) { stderrSub.cancel(), ]); if (!processWasKilledIntentionally && code != 0) { + print('[DEBUG:DANTUP] Completing with failure due to exit code=$code'); completer.completeError('flutter run failed: exit code=$code'); } });