Remove some unneeded logging.

This commit is contained in:
levlam 2022-07-20 18:01:26 +03:00
parent 771b6d3991
commit 7d94cc9aa8
3 changed files with 4 additions and 7 deletions

View File

@ -11,14 +11,12 @@
#include "td/telegram/PhotoSize.h"
#include "td/telegram/Version.h"
#include "td/utils/logging.h"
#include "td/utils/tl_helpers.h"
namespace td {
template <class StorerT>
void store(const PhotoSize &photo_size, StorerT &storer) {
LOG(DEBUG) << "Store photo size " << photo_size;
store(photo_size.type, storer);
store(photo_size.dimensions, storer);
store(photo_size.size, storer);
@ -41,7 +39,6 @@ void parse(PhotoSize &photo_size, ParserT &parser) {
parser.set_error("Wrong PhotoSize type");
return;
}
LOG(DEBUG) << "Parsed photo size " << photo_size;
}
template <class StorerT>

View File

@ -2357,7 +2357,6 @@ tl_object_ptr<telegram_api::InputStickerSet> StickersManager::get_input_sticker_
FileId StickersManager::on_get_sticker(unique_ptr<Sticker> new_sticker, bool replace) {
auto file_id = new_sticker->file_id;
CHECK(file_id.is_valid());
LOG(INFO) << "Receive sticker " << file_id;
auto &s = stickers_[file_id];
if (s == nullptr) {
s = std::move(new_sticker);

View File

@ -1464,8 +1464,6 @@ void FileManager::do_cancel_generate(FileNodePtr node) {
}
Result<FileId> FileManager::merge(FileId x_file_id, FileId y_file_id, bool no_sync) {
LOG(DEBUG) << "Merge new file " << x_file_id << " and old file " << y_file_id;
if (!x_file_id.is_valid()) {
return Status::Error("First file_id is invalid");
}
@ -1489,13 +1487,16 @@ Result<FileId> FileManager::merge(FileId x_file_id, FileId y_file_id, bool no_sy
x_node->set_upload_pause(FileId());
}
if (x_node.get() == y_node.get()) {
LOG(DEBUG) << "Files are already merged";
if (x_file_id != y_file_id) {
LOG(DEBUG) << "New file " << x_file_id << " and old file " << y_file_id << " are already merged";
}
return x_node->main_file_id_;
}
if (y_file_id == y_node->upload_pause_) {
y_node->set_upload_pause(FileId());
}
LOG(DEBUG) << "Merge new file " << x_file_id << " and old file " << y_file_id;
if (x_node->remote_.full && y_node->remote_.full && !x_node->remote_.full.value().is_web() &&
!y_node->remote_.full.value().is_web() && y_node->remote_.is_full_alive &&
x_node->remote_.full_source == FileLocationSource::FromServer &&