Commit 2cb54d27 authored by Stephan Lachnit's avatar Stephan Lachnit Committed by Simon Spannagel
Browse files

log: avoid one string copy

(cherry picked from commit 1d089755)
parent 63278eae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ namespace allpix {
        if(allpix::LogLevel::level <= allpix::Log::getReportingLevel() && !allpix::Log::getStreams().empty())               \
    allpix::Log().getStream(                                                                                                \
        allpix::LogLevel::level, __FILE_NAME__, std::string(static_cast<const char*>(__func__)), __LINE__)                  \
        << std::string(--GET_LOG_VARIABLE() == 0 ? "[further messages suppressed] " : "")
        << ((--GET_LOG_VARIABLE() == 0) ? "[further messages suppressed] " : "")

    /**
     * @brief Suppress a stream from writing any output