diff options
author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 19:30:52 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 19:30:52 +0000 |
commit | b46d699461817984366d8a230a51ffb4d0afe8f1 (patch) | |
tree | ad3a744785ed879bee20d5fcd0d866859af1c1d6 /net/disk_cache | |
parent | 87ecde9bc0017384d98b195dfd7e76dae63ac504 (diff) | |
download | chromium_src-b46d699461817984366d8a230a51ffb4d0afe8f1.zip chromium_src-b46d699461817984366d8a230a51ffb4d0afe8f1.tar.gz chromium_src-b46d699461817984366d8a230a51ffb4d0afe8f1.tar.bz2 |
Revert 237095 "LOG(INFO) tidying in net/"
VLOG(0) isn't any better than LOG(INFO), other than sneaking past PRESUBMIT.
> LOG(INFO) tidying in net/
>
> Some deletions, some to VLOG.
>
> R=rsleevi@chromium.org
> BUG=322805
>
> Review URL: https://codereview.chromium.org/82913011
TBR=scottmg@chromium.org
Review URL: https://codereview.chromium.org/86203003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/rankings.cc | 2 | ||||
-rw-r--r-- | net/disk_cache/simple/simple_index_file.cc | 2 | ||||
-rw-r--r-- | net/disk_cache/simple/simple_synchronous_entry.cc | 16 | ||||
-rw-r--r-- | net/disk_cache/trace.cc | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/net/disk_cache/rankings.cc b/net/disk_cache/rankings.cc index 8377e9b..ff9913e 100644 --- a/net/disk_cache/rankings.cc +++ b/net/disk_cache/rankings.cc @@ -895,7 +895,7 @@ void Rankings::InvalidateIterators(CacheRankingsBlock* node) { for (IteratorList::iterator it = iterators_.begin(); it != iterators_.end(); ++it) { if (it->first == address) { - DVLOG(0) << "Invalidating iterator at 0x" << std::hex << address; + DLOG(INFO) << "Invalidating iterator at 0x" << std::hex << address; it->second->Discard(); } } diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc index c1fc053..5e1e4ba 100644 --- a/net/disk_cache/simple/simple_index_file.cc +++ b/net/disk_cache/simple/simple_index_file.cc @@ -434,7 +434,7 @@ void SimpleIndexFile::SyncRestoreFromDisk( const base::FilePath& cache_directory, const base::FilePath& index_file_path, SimpleIndexLoadResult* out_result) { - VLOG(0) << "Simple Cache Index is being restored from disk."; + LOG(INFO) << "Simple Cache Index is being restored from disk."; base::DeleteFile(index_file_path, /* recursive = */ false); out_result->Reset(); SimpleIndex::EntrySet* entries = &out_result->entries; diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc index d18352b..81f52e1 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) { - DVLOG(0) << "Truncating sparse data file (" << sparse_data_size << " + " + DLOG(INFO) << "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) { - DVLOG(0) << "EOF record had bad crc."; + DLOG(INFO) << "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); - DVLOG(0) << "Could not write stream 0 data."; + DLOG(INFO) << "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); - DVLOG(0) << "Could not truncate stream 0 file."; + DLOG(INFO) << "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); - DVLOG(0) << "Could not write eof record."; + DLOG(INFO) << "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) { - DVLOG(0) << "Removing empty stream 2 file."; + DLOG(INFO) << "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) { - DVLOG(0) << "EOF record had bad crc."; + DLOG(INFO) << "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); - DVLOG(0) << "EOF record had bad magic number."; + DLOG(INFO) << "EOF record had bad magic number."; return net::ERR_CACHE_CHECKSUM_READ_FAILURE; } diff --git a/net/disk_cache/trace.cc b/net/disk_cache/trace.cc index 77ee7c1..56ebe9b 100644 --- a/net/disk_cache/trace.cc +++ b/net/disk_cache/trace.cc @@ -121,7 +121,7 @@ void Trace(const char* format, ...) { #if defined(DISK_CACHE_TRACE_TO_LOG) line[kEntrySize] = '\0'; - VLOG(0) << line; + LOG(INFO) << line; #endif va_end(ap); |