diff --git a/td/telegram/PasswordManager.cpp b/td/telegram/PasswordManager.cpp index 34f1517a..a0ee7e2a 100644 --- a/td/telegram/PasswordManager.cpp +++ b/td/telegram/PasswordManager.cpp @@ -479,7 +479,6 @@ void PasswordManager::do_get_state(Promise promise) { } void PasswordManager::cache_secret(secure_storage::Secret secret) { - LOG(ERROR) << "CACHE"; secret_ = std::move(secret); } diff --git a/td/telegram/SecureStorage.cpp b/td/telegram/SecureStorage.cpp index 50cd2220..dd74f97b 100644 --- a/td/telegram/SecureStorage.cpp +++ b/td/telegram/SecureStorage.cpp @@ -18,7 +18,6 @@ namespace secure_storage { Result ValueHash::create(Slice data) { UInt256 hash; if (data.size() != ::td::as_slice(hash).size()) { - LOG(FATAL); return Status::Error(PSLICE() << "Wrong hash size " << data.size()); } ::td::as_slice(hash).copy_from(data); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 416890bb..5d5e99e6 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -1096,7 +1096,7 @@ class CliClient final : public Actor { string scope = query.get_arg("scope").str(); string public_key = query.get_arg("public_key").str(); string payload = query.get_arg("payload").str(); - LOG(ERROR) << query.get_arg("callback_url"); + LOG(INFO) << "Callback URL:" << query.get_arg("callback_url"); send_request(make_tl_object(to_integer(bot_id), scope, public_key, payload, password)); } else if (op == "spaf") { diff --git a/td/telegram/files/FileUploader.cpp b/td/telegram/files/FileUploader.cpp index d3e76d98..41fb5bd8 100644 --- a/td/telegram/files/FileUploader.cpp +++ b/td/telegram/files/FileUploader.cpp @@ -118,7 +118,7 @@ Result FileUploader::on_update_local_location(const Loca file_fd_path.first.close(); auto new_path = std::move(file_fd_path.second); TRY_RESULT(hash, secure_storage::encrypt_file(encryption_key_.secret(), path, new_path)); - LOG(ERROR) << "ENCRYPT " << path << " " << new_path; + LOG(INFO) << "ENCRYPT " << path << " " << new_path; callback_->on_hash(hash.as_slice().str()); path = new_path; is_temp = true; @@ -177,7 +177,7 @@ Result FileUploader::on_update_local_location(const Loca Status FileUploader::on_ok(int64 size) { fd_.close(); if (is_temp_) { - LOG(ERROR) << "UNLINK " << fd_path_; + LOG(INFO) << "UNLINK " << fd_path_; unlink(fd_path_).ignore(); } return Status::OK(); @@ -185,7 +185,7 @@ Status FileUploader::on_ok(int64 size) { void FileUploader::on_error(Status status) { fd_.close(); if (is_temp_) { - LOG(ERROR) << "UNLINK " << fd_path_; + LOG(INFO) << "UNLINK " << fd_path_; unlink(fd_path_).ignore(); } callback_->on_error(std::move(status));