Remove temporary debug logging.

GitOrigin-RevId: e427491fc36fc6a6299eb0bed3a036638605ca5a
This commit is contained in:
levlam 2018-04-23 18:05:02 +03:00
parent 8107c838c0
commit a4f664e697
4 changed files with 4 additions and 6 deletions

View File

@ -479,7 +479,6 @@ void PasswordManager::do_get_state(Promise<PasswordState> promise) {
}
void PasswordManager::cache_secret(secure_storage::Secret secret) {
LOG(ERROR) << "CACHE";
secret_ = std::move(secret);
}

View File

@ -18,7 +18,6 @@ namespace secure_storage {
Result<ValueHash> 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);

View File

@ -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<td_api::getPassportAuthorizationForm>(to_integer<int32>(bot_id), scope, public_key,
payload, password));
} else if (op == "spaf") {

View File

@ -118,7 +118,7 @@ Result<FileLoader::PrefixInfo> 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<FileLoader::PrefixInfo> 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));