Remove temporary debug logging.
GitOrigin-RevId: e427491fc36fc6a6299eb0bed3a036638605ca5a
This commit is contained in:
parent
8107c838c0
commit
a4f664e697
@ -479,7 +479,6 @@ void PasswordManager::do_get_state(Promise<PasswordState> promise) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PasswordManager::cache_secret(secure_storage::Secret secret) {
|
void PasswordManager::cache_secret(secure_storage::Secret secret) {
|
||||||
LOG(ERROR) << "CACHE";
|
|
||||||
secret_ = std::move(secret);
|
secret_ = std::move(secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ namespace secure_storage {
|
|||||||
Result<ValueHash> ValueHash::create(Slice data) {
|
Result<ValueHash> ValueHash::create(Slice data) {
|
||||||
UInt256 hash;
|
UInt256 hash;
|
||||||
if (data.size() != ::td::as_slice(hash).size()) {
|
if (data.size() != ::td::as_slice(hash).size()) {
|
||||||
LOG(FATAL);
|
|
||||||
return Status::Error(PSLICE() << "Wrong hash size " << data.size());
|
return Status::Error(PSLICE() << "Wrong hash size " << data.size());
|
||||||
}
|
}
|
||||||
::td::as_slice(hash).copy_from(data);
|
::td::as_slice(hash).copy_from(data);
|
||||||
|
@ -1096,7 +1096,7 @@ class CliClient final : public Actor {
|
|||||||
string scope = query.get_arg("scope").str();
|
string scope = query.get_arg("scope").str();
|
||||||
string public_key = query.get_arg("public_key").str();
|
string public_key = query.get_arg("public_key").str();
|
||||||
string payload = query.get_arg("payload").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<td_api::getPassportAuthorizationForm>(to_integer<int32>(bot_id), scope, public_key,
|
send_request(make_tl_object<td_api::getPassportAuthorizationForm>(to_integer<int32>(bot_id), scope, public_key,
|
||||||
payload, password));
|
payload, password));
|
||||||
} else if (op == "spaf") {
|
} else if (op == "spaf") {
|
||||||
|
@ -118,7 +118,7 @@ Result<FileLoader::PrefixInfo> FileUploader::on_update_local_location(const Loca
|
|||||||
file_fd_path.first.close();
|
file_fd_path.first.close();
|
||||||
auto new_path = std::move(file_fd_path.second);
|
auto new_path = std::move(file_fd_path.second);
|
||||||
TRY_RESULT(hash, secure_storage::encrypt_file(encryption_key_.secret(), path, new_path));
|
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());
|
callback_->on_hash(hash.as_slice().str());
|
||||||
path = new_path;
|
path = new_path;
|
||||||
is_temp = true;
|
is_temp = true;
|
||||||
@ -177,7 +177,7 @@ Result<FileLoader::PrefixInfo> FileUploader::on_update_local_location(const Loca
|
|||||||
Status FileUploader::on_ok(int64 size) {
|
Status FileUploader::on_ok(int64 size) {
|
||||||
fd_.close();
|
fd_.close();
|
||||||
if (is_temp_) {
|
if (is_temp_) {
|
||||||
LOG(ERROR) << "UNLINK " << fd_path_;
|
LOG(INFO) << "UNLINK " << fd_path_;
|
||||||
unlink(fd_path_).ignore();
|
unlink(fd_path_).ignore();
|
||||||
}
|
}
|
||||||
return Status::OK();
|
return Status::OK();
|
||||||
@ -185,7 +185,7 @@ Status FileUploader::on_ok(int64 size) {
|
|||||||
void FileUploader::on_error(Status status) {
|
void FileUploader::on_error(Status status) {
|
||||||
fd_.close();
|
fd_.close();
|
||||||
if (is_temp_) {
|
if (is_temp_) {
|
||||||
LOG(ERROR) << "UNLINK " << fd_path_;
|
LOG(INFO) << "UNLINK " << fd_path_;
|
||||||
unlink(fd_path_).ignore();
|
unlink(fd_path_).ignore();
|
||||||
}
|
}
|
||||||
callback_->on_error(std::move(status));
|
callback_->on_error(std::move(status));
|
||||||
|
Reference in New Issue
Block a user