Correct WV log spam
[ Merge of http://go/wvgerrit/102923 ] Avoid logging an error, on first boot, when trying to retrieve a certificate that does not yet exist. Bug: 161201883 Test: WV unit/integration tests Change-Id: I293f9766a7f2024107d0db45a874a9478b0c3959
This commit is contained in:
@@ -139,6 +139,10 @@ bool DeviceFiles::RetrieveCertificate(bool atsc_mode_enabled,
|
||||
uint32_t* system_id) {
|
||||
RETURN_FALSE_IF_UNINITIALIZED();
|
||||
|
||||
if (!HasCertificate(atsc_mode_enabled)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
video_widevine_client::sdk::File file;
|
||||
if (RetrieveHashedFile(GetCertificateFileName(atsc_mode_enabled), &file) !=
|
||||
kNoError) {
|
||||
@@ -1109,7 +1113,7 @@ DeviceFiles::ResponseType DeviceFiles::RetrieveHashedFile(
|
||||
path += name;
|
||||
|
||||
if (!file_system_->Exists(path)) {
|
||||
LOGE("File does not exist: path = %s", path.c_str());
|
||||
LOGW("File does not exist: path = %s", path.c_str());
|
||||
return kFileNotFound;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user