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

Unified Diff: net/disk_cache/backend_impl.cc

Issue 10204005: Disk cache: Add more logging to track disk errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 133094)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -860,8 +860,10 @@
scoped_refptr<disk_cache::File> file(new disk_cache::File(
base::CreatePlatformFile(name, flags, NULL, &error)));
if (!file->IsValid()) {
- if (error != base::PLATFORM_FILE_ERROR_EXISTS)
+ if (error != base::PLATFORM_FILE_ERROR_EXISTS) {
+ LOG(ERROR) << "Unable to create file: " << error;
return false;
+ }
continue;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698