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

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.cc

Issue 82913011: LOG(INFO) tidying in net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert dns_fuzz_stub changes Created 7 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
« no previous file with comments | « net/disk_cache/simple/simple_index_file.cc ('k') | net/disk_cache/trace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_synchronous_entry.cc
diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc
index 81f52e15b7dd40281f615fe85e7db3299c4600fc..d18352b1d31d7e46bfadff35befb820143234a65 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.cc
+++ b/net/disk_cache/simple/simple_synchronous_entry.cc
@@ -488,7 +488,7 @@ void SimpleSynchronousEntry::WriteSparseData(
// This is a pessimistic estimate; it assumes the entire buffer is going to
// be appended as a new range, not written over existing ranges.
if (sparse_data_size + buf_len > max_sparse_data_size) {
- DLOG(INFO) << "Truncating sparse data file (" << sparse_data_size << " + "
+ DVLOG(0) << "Truncating sparse data file (" << sparse_data_size << " + "
<< buf_len << " > " << max_sparse_data_size << ")";
TruncateSparseFile();
}
@@ -624,7 +624,7 @@ void SimpleSynchronousEntry::CheckEOFRecord(int index,
return;
}
if (has_crc32 && crc32 != expected_crc32) {
- DLOG(INFO) << "EOF record had bad crc.";
+ DVLOG(0) << "EOF record had bad crc.";
*out_result = net::ERR_CACHE_CHECKSUM_MISMATCH;
RecordCheckEOFResult(cache_type_, CHECK_EOF_RESULT_CRC_MISMATCH);
Doom();
@@ -645,7 +645,7 @@ void SimpleSynchronousEntry::Close(
stream_0_data->data(),
entry_stat.data_size(0)) != entry_stat.data_size(0)) {
RecordCloseResult(cache_type_, CLOSE_RESULT_WRITE_FAILURE);
- DLOG(INFO) << "Could not write stream 0 data.";
+ DVLOG(0) << "Could not write stream 0 data.";
Doom();
}
@@ -670,7 +670,7 @@ void SimpleSynchronousEntry::Close(
if (stream_index == 0 &&
!TruncatePlatformFile(files_[file_index], eof_offset)) {
RecordCloseResult(cache_type_, CLOSE_RESULT_WRITE_FAILURE);
- DLOG(INFO) << "Could not truncate stream 0 file.";
+ DVLOG(0) << "Could not truncate stream 0 file.";
Doom();
break;
}
@@ -679,7 +679,7 @@ void SimpleSynchronousEntry::Close(
reinterpret_cast<const char*>(&eof_record),
sizeof(eof_record)) != sizeof(eof_record)) {
RecordCloseResult(cache_type_, CLOSE_RESULT_WRITE_FAILURE);
- DLOG(INFO) << "Could not write eof record.";
+ DVLOG(0) << "Could not write eof record.";
Doom();
break;
}
@@ -1005,7 +1005,7 @@ int SimpleSynchronousEntry::InitializeForOpen(
DCHECK(CanOmitEmptyFile(stream2_file_index));
if (!empty_file_omitted_[stream2_file_index] &&
out_entry_stat->data_size(2) == 0) {
- DLOG(INFO) << "Removing empty stream 2 file.";
+ DVLOG(0) << "Removing empty stream 2 file.";
CloseFile(stream2_file_index);
DeleteFileForEntryHash(path_, entry_hash_, stream2_file_index);
empty_file_omitted_[stream2_file_index] = true;
@@ -1113,7 +1113,7 @@ int SimpleSynchronousEntry::ReadAndValidateStream0(
reinterpret_cast<const Bytef*>((*stream_0_data)->data()),
stream_0_size);
if (has_crc32 && read_crc32 != expected_crc32) {
- DLOG(INFO) << "EOF record had bad crc.";
+ DVLOG(0) << "EOF record had bad crc.";
RecordCheckEOFResult(cache_type_, CHECK_EOF_RESULT_CRC_MISMATCH);
return net::ERR_FAILED;
}
@@ -1140,7 +1140,7 @@ int SimpleSynchronousEntry::GetEOFRecordData(int index,
if (eof_record.final_magic_number != kSimpleFinalMagicNumber) {
RecordCheckEOFResult(cache_type_, CHECK_EOF_RESULT_MAGIC_NUMBER_MISMATCH);
- DLOG(INFO) << "EOF record had bad magic number.";
+ DVLOG(0) << "EOF record had bad magic number.";
return net::ERR_CACHE_CHECKSUM_READ_FAILURE;
}
« no previous file with comments | « net/disk_cache/simple/simple_index_file.cc ('k') | net/disk_cache/trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698