Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Aug 16, 2024
1 parent 55eb7a5 commit a927dad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions log/include/gz/utils/log/SplitSink.hh
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ class SplitRingBufferSink: public spdlog::sinks::base_sink<Mutex>
}

/// \brief ToDo.
/// \param[in] _lim
/// \return
/// \param[in] _msg ToDo.
protected: void sink_it_(const spdlog::details::log_msg &_msg) override
{
if (!this->should_log(_msg.level))
Expand Down Expand Up @@ -189,16 +188,15 @@ class SplitRingBufferSink: public spdlog::sinks::base_sink<Mutex>
/// \brief Set the new formatter.
/// \param[in] _sinkFormatter The formatter.
protected: void set_formatter_(
std::unique_ptr<spdlog::formatter> sinkFormatter) override
std::unique_ptr<spdlog::formatter> _sinkFormatter) override
{
spdlog::sinks::base_sink<Mutex>::formatter_ = std::move(sinkFormatter);
spdlog::sinks::base_sink<Mutex>::formatter_ = std::move(_sinkFormatter);
this->stdout.set_formatter(
spdlog::sinks::base_sink<Mutex>::formatter_->clone());
this->stderr.set_formatter(
spdlog::sinks::base_sink<Mutex>::formatter_->clone());
}


/// \brief Standard output.
private: spdlog::sinks::ringbuffer_sink_st stdout {numItems};

Expand Down

0 comments on commit a927dad

Please sign in to comment.