mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Get rid of std::cerr logs in collator/validator
This commit is contained in:
parent
3c245c6146
commit
ce6c29941e
14 changed files with 310 additions and 200 deletions
|
@ -163,8 +163,11 @@ td::Status ConfigInfo::unpack() {
|
|||
}
|
||||
gen::McStateExtra::Record extra_info;
|
||||
if (!tlb::unpack_cell(state_extra_root_, extra_info)) {
|
||||
vm::load_cell_slice(state_extra_root_).print_rec(std::cerr);
|
||||
block::gen::t_McStateExtra.print_ref(std::cerr, state_extra_root_);
|
||||
FLOG(WARNING) {
|
||||
sb << "state extra information is invalid: ";
|
||||
vm::load_cell_slice(state_extra_root_).print_rec(sb);
|
||||
block::gen::t_McStateExtra.print_ref(sb, state_extra_root_);
|
||||
};
|
||||
return td::Status::Error("state extra information is invalid");
|
||||
}
|
||||
gen::ValidatorInfo::Record validator_info;
|
||||
|
@ -1067,7 +1070,6 @@ Ref<McShardHash> ShardConfig::get_shard_hash(ton::ShardIdFull id, bool exact) co
|
|||
ton::ShardIdFull true_id;
|
||||
vm::CellSlice cs;
|
||||
if (get_shard_hash_raw(cs, id, true_id, exact)) {
|
||||
// block::gen::t_ShardDescr.print(std::cerr, vm::CellSlice{cs});
|
||||
return McShardHash::unpack(cs, true_id);
|
||||
} else {
|
||||
return {};
|
||||
|
@ -1637,8 +1639,10 @@ bool ShardConfig::set_shard_info(ton::ShardIdFull shard, Ref<vm::Cell> value) {
|
|||
if (!gen::t_BinTree_ShardDescr.validate_ref(1024, value)) {
|
||||
LOG(ERROR) << "attempting to store an invalid (BinTree ShardDescr) at shard configuration position "
|
||||
<< shard.to_str();
|
||||
gen::t_BinTree_ShardDescr.print_ref(std::cerr, value);
|
||||
vm::load_cell_slice(value).print_rec(std::cerr);
|
||||
FLOG(WARNING) {
|
||||
gen::t_BinTree_ShardDescr.print_ref(sb, value);
|
||||
vm::load_cell_slice(value).print_rec(sb);
|
||||
};
|
||||
return false;
|
||||
}
|
||||
auto root = shard_hashes_dict_->lookup_ref(td::BitArray<32>{shard.workchain});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue