]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
RemoteLogger: Fix astring-plus-int issue
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Dec 2020 16:10:59 +0000 (17:10 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jan 2021 09:25:41 +0000 (10:25 +0100)
pdns/remote_logger.cc

index a6074271c0e200bcf92016d901e003497a78b9c7..081610523809c3562c4fac5b58fbf29101378881 100644 (file)
@@ -135,7 +135,7 @@ bool RemoteLogger::reconnect()
 void RemoteLogger::queueData(const std::string& data)
 {
   if (data.size() > std::numeric_limits<uint16_t>::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<std::mutex> lock(d_mutex);