chore: add logging for print_backend failures (#29884)
This commit is contained in:
parent
d7a7c120d1
commit
d2508a6941
3 changed files with 30 additions and 12 deletions
|
@ -47,7 +47,10 @@ printing::PrinterList GetPrinterList() {
|
|||
// TODO(deepak1556): Deprecate this api in favor of an
|
||||
// async version and post a non blocing task call.
|
||||
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
||||
print_backend->EnumeratePrinters(&printers);
|
||||
printing::mojom::ResultCode code =
|
||||
print_backend->EnumeratePrinters(&printers);
|
||||
if (code != printing::mojom::ResultCode::kSuccess)
|
||||
LOG(INFO) << "Failed to enumerate printers";
|
||||
}
|
||||
return printers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue