Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: chromeos/printing/ppd_cache.cc

Issue 2476073003: Update PpdProvider threading model. (Closed)
Patch Set: Add more logging, add bypass for manufacturer issue Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/printing/ppd_cache.cc
diff --git a/chromeos/printing/ppd_cache.cc b/chromeos/printing/ppd_cache.cc
index 2b4abd1288111de8b4a9a3db9ea639f4b874e870..21d53dca806f7dc38c32855b332fc86da8b225f7 100644
--- a/chromeos/printing/ppd_cache.cc
+++ b/chromeos/printing/ppd_cache.cc
@@ -149,7 +149,8 @@ class PpdCacheImpl : public PpdCache {
}
if (base::WriteFile(available_printers_file_, contents.data(),
contents.size()) != static_cast<int>(contents.size())) {
- LOG(ERROR) << "Failed to write available printers cache";
+ LOG(ERROR) << "Failed to write available printers cache to "
+ << available_printers_file_.MaybeAsASCII();
}
}
@@ -219,7 +220,8 @@ class PpdCacheImpl : public PpdCache {
if (!base::ReadFileToStringWithMaxSize(
available_printers_file_, buf,
options_.max_available_list_cached_size)) {
- LOG(ERROR) << "Failed to read printer cache";
+ LOG(ERROR) << "Failed to read printer cache from "
+ << available_printers_file_.MaybeAsASCII();
buf->clear();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698