More logging tweaks.

This commit is contained in:
Scott Lamb 2016-05-01 10:06:31 -07:00
parent cefbcedc9c
commit a7bfb00083
2 changed files with 4 additions and 1 deletions

View File

@ -238,6 +238,8 @@ class FileSlices : public FileSlice {
size_ = new_size;
}
size_t num_slices() const { return slices_.size(); }
int64_t size() const final { return size_; }
int64_t AddRange(ByteRange range, EvBuffer *buf,
std::string *error_message) const final;

View File

@ -548,7 +548,8 @@ class Mp4File : public VirtualFile {
etag_digest->Update(segment->recording.sample_file_sha1);
}
etag_ = StrCat("\"", ToHex(etag_digest->Finalize()), "\"");
VLOG(1) << "Constructed .mp4 has " << slices_.size() << " slices.";
VLOG(1) << "Constructed .mp4 has " << slices_.num_slices() << " slices for "
<< segments_.size() << " segments, " << slices_.size() << " bytes.";
}
time_t last_modified() const final { return last_modified_; }