Skip to content

Commit

Permalink
devsink fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArqTras committed Jan 9, 2021
1 parent 363bba2 commit 78984d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/include/dev_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace arqma {

template <typename Mutex>
class dev_sink : public spdlog::sinks::base_sink<Mutex> {

using Base = spdlog::sinks::base_sink<Mutex>;
// Potentially all entries will be returned in a
// single message, so we should keep the limit
// relatively small
Expand All @@ -22,8 +22,8 @@ class dev_sink : public spdlog::sinks::base_sink<Mutex> {

protected:
void sink_it_(const spdlog::details::log_msg& msg) override {
fmt::memory_buffer formatted;
spdlog::sinks::sink::formatter_->format(msg, formatted);
spdlog::memory_buf_t formatted;
Base::formatter_->format(msg, formatted);

if (primary_buffer_.size() >= BUFFER_SIZE) {
secondary_buffer_ = std::move(primary_buffer_);
Expand Down

0 comments on commit 78984d6

Please sign in to comment.