Use ErrorLog instead of InfoLog in InstanceBase::ConsumedError

Printing to stdout actually impacts Web Tests results which
makes managing expectations difficult, especially if logs
change.

Change InfoLog to ErrorLog:
 1) because this is ConsumedError, after all
 2) until we figure out if we can make Web Tests ignore stdout

Bug: chromium:1266550
Change-Id: I05f47f8b6d7a8e11568c5ee87eabab0cfd7c02d6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/76680
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng 2022-01-18 19:40:35 +00:00 committed by Dawn LUCI CQ
parent 394c17a1bb
commit d0530a6e03
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ namespace dawn::native {
std::unique_ptr<ErrorData> error = maybeError.AcquireError();
ASSERT(error != nullptr);
dawn::InfoLog() << error->GetFormattedMessage();
dawn::ErrorLog() << error->GetFormattedMessage();
return true;
}
return false;