From 1f9e2a199957bd4c42bf56873d80c4c71381c3b4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 23 Jul 2015 00:48:23 +0200 Subject: [PATCH] Make the warning on dropping junk bytes clearer. --- httpinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2