aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zheng <zhengdaniel@google.com>2024-01-29 08:38:17 -0800
committerDaniel Zheng <zhengdaniel@google.com>2024-01-29 18:53:16 +0000
commit7ff60fd8dcd64f5dd3574da2ccda20eb2f2d2870 (patch)
tree349db4c3ecb997412e3ee38b4a8707118c8d98a1
parent5f07b22b85502bb0fa697066c8246c60108eb380 (diff)
downloadupdate_engine-7ff60fd8dcd64f5dd3574da2ccda20eb2f2d2870.tar.gz
update_engine: log network ID
A recent bug was found where update_engine downloaded it's entire payload over the cellular network rather than wifi. This bug could've been more easily debugged with this given log, since the other network logs are not as persistent. Adding this here for easier debugging in the future Test: th Bug: 309751457 Change-Id: I1184814eebd0f88820aaf9d7948e7503efa1d903
-rw-r--r--aosp/update_attempter_android.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/aosp/update_attempter_android.cc b/aosp/update_attempter_android.cc
index e41531cb..0f6fc5ce 100644
--- a/aosp/update_attempter_android.cc
+++ b/aosp/update_attempter_android.cc
@@ -353,6 +353,7 @@ bool UpdateAttempterAndroid::ApplyPayload(
__FILE__,
"Unable to set network_id: " + headers[kPayloadPropertyNetworkId]);
}
+ LOG(INFO) << "Using network ID: " << network_id;
}
LOG(INFO) << "Using this install plan:";