From 738abdbd96a1ce0873c4c2ad035b8a40c1e215d2 Mon Sep 17 00:00:00 2001 From: The-EDev Date: Mon, 12 Apr 2021 20:11:03 +0300 Subject: [PATCH] fixed issue where response is logged twice --- include/crow/http_connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index 5d6741dca..d68598c80 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -394,7 +394,7 @@ namespace crow } prepare_buffers(); - CROW_LOG_INFO << "Response: " << this << ' ' << req_.raw_url << ' ' << res.code << ' ' << close_connection_; + if (res.is_static_type()) { do_write_static();