From: Steinar H. Gunderson Date: Wed, 22 Jul 2015 22:48:23 +0000 (+0200) Subject: Make the warning on dropping junk bytes clearer. X-Git-Tag: 1.2.0~13 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=1f9e2a199957bd4c42bf56873d80c4c71381c3b4;ds=sidebyside Make the warning on dropping junk bytes clearer. --- diff --git a/httpinput.cpp b/httpinput.cpp index 025fd45..807abac 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -578,7 +578,7 @@ void HTTPInput::drop_pending_data(size_t num_bytes) if (num_bytes == 0) { return; } - log(WARNING, "[%s] Dropping %lld junk bytes from stream, maybe it is not a Metacube2 stream?", + log(WARNING, "[%s] Dropping %lld junk bytes; not a Metacube2 stream, or data was dropped from the middle of the stream", url.c_str(), (long long)num_bytes); assert(pending_data.size() >= num_bytes); pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);