updated logger to support std::format (upgrading to gcc >13 was one of the most tedious things i've ever done)

This commit is contained in:
2026-07-18 03:42:43 -05:00
parent 235530c03d
commit 1c74c04db3
6 changed files with 25 additions and 22 deletions

View File

@@ -74,8 +74,7 @@ ErrorCode TcpClient::init() {
return ErrorCode::Error;
}
std::string msg = "Received " + std::to_string(receiveBytes) + " bytes back from server.";
logger_->log("TcpClient", LogFlag::Debug, msg);
logger_->log("TcpClient", LogFlag::Debug, "Received {} bytes back from the server", receiveBytes);
close(socketFd);