From: Remi Gacogne Date: Thu, 10 Dec 2020 16:10:59 +0000 (+0100) Subject: RemoteLogger: Fix astring-plus-int issue X-Git-Tag: rec-4.5.0-alpha1~38^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=865a94db38ef67d9f4fdab2abe485994df482792;p=thirdparty%2Fpdns.git RemoteLogger: Fix astring-plus-int issue --- diff --git a/pdns/remote_logger.cc b/pdns/remote_logger.cc index a6074271c0..0816105238 100644 --- a/pdns/remote_logger.cc +++ b/pdns/remote_logger.cc @@ -135,7 +135,7 @@ bool RemoteLogger::reconnect() void RemoteLogger::queueData(const std::string& data) { if (data.size() > std::numeric_limits::max()) { - throw std::runtime_error("Got a request to write an object of size " + data.size()); + throw std::runtime_error("Got a request to write an object of size " + std::to_string(data.size())); } std::lock_guard lock(d_mutex);