#456 Don't show error "JSON decode failed" in quiet mode.

This commit is contained in:
XMRig 2018-03-17 01:07:53 +07:00
parent 7959cf39fa
commit 7ab81ef19a

View file

@ -407,7 +407,10 @@ void Client::parse(char *line, size_t len)
LOG_DEBUG("[%s:%u] received (%d bytes): \"%s\"", m_url.host(), m_url.port(), len, line);
if (len < 32 || line[0] != '{') {
LOG_ERR("[%s:%u] JSON decode failed", m_url.host(), m_url.port());
if (!m_quiet) {
LOG_ERR("[%s:%u] JSON decode failed", m_url.host(), m_url.port());
}
return;
}