Skip to content

Commit

Permalink
Fixed compilation error when built-time debug level is 'trace'. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Jan 22, 2025
1 parent 855349b commit 31f2fa2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (DEFINED ENV{RESTC_CPP_VERSION})
endif()

if (NOT DEFINED RESTC_CPP_VERSION)
set(RESTC_CPP_VERSION 0.102.0)
set(RESTC_CPP_VERSION 0.102.1)
endif()

if(NOT DEFINED RESTC_BOOST_VERSION)
Expand Down
5 changes: 2 additions & 3 deletions src/ChunkedReaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,15 @@ class ChunkedReaderImpl : public DataReader {
return out.str();
}

static void Log(const ::restc_cpp::boost_const_buffer buffers, const char * /*tag*/)
static void Log(const ::restc_cpp::boost_const_buffer buffers, const char * tag)
{
const auto buf_len = boost_buffer_size(buffers);

// At the time of the implementation, there are never multiple buffers.
RESTC_CPP_LOG_TRACE_(tag << ' ' << "# " << buf_len
<< " bytes: "
<< ToPrintable({
boost::asio::buffer_cast<const char *>(*buffers.begin()),
buf_len}));
boost_buffer_cast(buffers), buf_len}));
}

::restc_cpp::boost_const_buffer ReadSome() override {
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/CRUD_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using namespace restc_cpp;

/* These url's points to a local Docker container with nginx, linked to
* a jsonserver docker container with mock data.
* The scripts to build and run these containers are in the ./tests directory.
* You can run /.create-and-run-containers.sh to start them.
*/
const string http_url = "http://localhost:3000/posts";

Expand Down

0 comments on commit 31f2fa2

Please sign in to comment.