From 68b5146a06f6ad5d2e0c557edb98acb898af0774 Mon Sep 17 00:00:00 2001 From: Alex Dale Date: Fri, 17 Jun 2022 19:47:26 -0700 Subject: [PATCH] Downgrade benign error logs in device_files.cpp to warnings [ Merge of http://go/wvgerrit/152650 ] There are two LOGEs in device_files.cpp that would frequently trigger during testing despite the condition they were logging being totally normal. The files were not present because the device had never had to write them yet. This patch downgrades these bengin errors to warnings to reduce log spam. Test: build_and_run_all_unit_tests.sh Bug: 236317198 Change-Id: I56f9d477f8a6b26635f0eb4a6b7c636e866381d3 --- libwvdrmengine/cdm/core/src/device_files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwvdrmengine/cdm/core/src/device_files.cpp b/libwvdrmengine/cdm/core/src/device_files.cpp index e18fac0a..b637b6f2 100644 --- a/libwvdrmengine/cdm/core/src/device_files.cpp +++ b/libwvdrmengine/cdm/core/src/device_files.cpp @@ -1686,7 +1686,7 @@ bool DeviceFiles::RetrieveUsageTableInfo( video_widevine_client::sdk::File file; if (RetrieveHashedFile(GetUsageTableFileName(), &file) != kNoError) { - LOGE("Unable to retrieve usage table file"); + LOGW("Unable to retrieve usage table file"); return false; } @@ -1830,7 +1830,7 @@ bool DeviceFiles::RetrieveOkpInfo(okp::SystemFallbackInfo* info) { // File meta-data validation. video_widevine_client::sdk::File file; if (RetrieveHashedFile(GetOkpInfoFileName(), &file) != kNoError) { - LOGE("Unable to retrieve OKP info file"); + LOGW("Unable to retrieve OKP info file"); return false; } if (file.type() != video_widevine_client::sdk::File::OKP_INFO) {