From ff5410bfe6e02c73908c7056b70b475a9de86340 Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Mon, 13 Jul 2020 11:33:44 +0900 Subject: [PATCH] Cleanup: Write error message on diags output instead of stderr --- proxy/http/HttpTunnel.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/http/HttpTunnel.cc b/proxy/http/HttpTunnel.cc index 0588acd311f..65746a46b1d 100644 --- a/proxy/http/HttpTunnel.cc +++ b/proxy/http/HttpTunnel.cc @@ -1499,9 +1499,7 @@ HttpTunnel::finish_all_internal(HttpTunnelProducer *p, bool chain) ink_assert(c->write_vio->nbytes >= 0); if (c->write_vio->nbytes < 0) { - // TODO: Wtf, printf? - fprintf(stderr, "[HttpTunnel::finish_all_internal] ERROR: Incorrect total_bytes - c->skip_bytes = %" PRId64 "\n", - static_cast(total_bytes - c->skip_bytes)); + Error("Incorrect total_bytes - c->skip_bytes = %" PRId64 "\n", total_bytes - c->skip_bytes); } }