#456 Don't show error "JSON decode failed" in quiet mode.
This commit is contained in:
parent
7959cf39fa
commit
7ab81ef19a
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
LOG_DEBUG("[%s:%u] received (%d bytes): \"%s\"", m_url.host(), m_url.port(), len, line);
|
||||||
|
|
||||||
if (len < 32 || line[0] != '{') {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue