Merge pull request #4744

b3e8677c cryptonote: use logging functions for errors, not std::cout (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-11-06 21:33:52 +02:00
commit 148ac1a898
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -328,7 +328,7 @@ bool parse_hash256(const std::string str_hash, crypto::hash& hash)
bool res = epee::string_tools::parse_hexstr_to_binbuff(str_hash, buf);
if (!res || buf.size() != sizeof(crypto::hash))
{
std::cout << "invalid hash format: <" << str_hash << '>' << std::endl;
MERROR("invalid hash format: " << str_hash);
return false;
}
else