summaryrefslogtreecommitdiff
path: root/methods/server.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-07-27 08:08:50 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-07-27 09:23:18 +0200
commitb9c20219dc17db1d29eaf297263a4b008bd1b90b (patch)
tree2003694acb29fd8dc0595ba9d65414cf72d572df /methods/server.cc
parent6e71ec6fcdcaa926c98fa58cd4af38e42556df15 (diff)
use proper warning for automatic pipeline disable
Also fixes message itself to mention the correct option name as noticed in #832113.
Diffstat (limited to 'methods/server.cc')
-rw-r--r--methods/server.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/methods/server.cc b/methods/server.cc
index 5ab97a660..461143388 100644
--- a/methods/server.cc
+++ b/methods/server.cc
@@ -637,10 +637,7 @@ int ServerMethod::Loop()
// yes, he did! Disable pipelining and rewrite queue
if (Server->Pipeline == true)
{
- // FIXME: fake a warning message as we have no proper way of communicating here
- std::string out;
- strprintf(out, _("Automatically disabled %s due to incorrect response from server/proxy. (man 5 apt.conf)"), "Acquire::http::PipelineDepth");
- std::cerr << "W: " << out << std::endl;
+ Warning(_("Automatically disabled %s due to incorrect response from server/proxy. (man 5 apt.conf)"), "Acquire::http::Pipeline-Depth");
Server->Pipeline = false;
Server->PipelineAllowed = false;
// we keep the PipelineDepth value so that the rest of the queue can be fixed up as well