Print some log when odrefresh fail
Bug: 284325112
Test: m
Change-Id: I940d6ba49454329bb3ab3c7ddd2b7e1df4944352
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc
index 6384685..1777be4 100644
--- a/odrefresh/odrefresh.cc
+++ b/odrefresh/odrefresh.cc
@@ -2078,6 +2078,8 @@
}
if (first_failure.has_value()) {
+ LOG(ERROR) << "Compilation failed, stage: " << first_failure->first
+ << " status: " << first_failure->second;
metrics.SetStage(first_failure->first);
metrics.SetStatus(first_failure->second);