From f498c5b3ebbc1032cbd358f3feef3bf1223bdaf6 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 26 Oct 2021 14:06:17 +0200 Subject: [PATCH] Use string refs for python logging object --- src/dwarfs/python_script.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dwarfs/python_script.cpp b/src/dwarfs/python_script.cpp index 0604ccdd..6b53f1b5 100644 --- a/src/dwarfs/python_script.cpp +++ b/src/dwarfs/python_script.cpp @@ -68,11 +68,11 @@ class py_logger { py_logger(logger& lgr) : log_(lgr) {} - void error(std::string msg) { LOG_ERROR << "[script] " << msg; } - void warn(std::string msg) { LOG_WARN << "[script] " << msg; } - void info(std::string msg) { LOG_INFO << "[script] " << msg; } - void debug(std::string msg) { LOG_DEBUG << "[script] " << msg; } - void trace(std::string msg) { LOG_TRACE << "[script] " << msg; } + void error(std::string const& msg) { LOG_ERROR << "[script] " << msg; } + void warn(std::string const& msg) { LOG_WARN << "[script] " << msg; } + void info(std::string const& msg) { LOG_INFO << "[script] " << msg; } + void debug(std::string const& msg) { LOG_DEBUG << "[script] " << msg; } + void trace(std::string const& msg) { LOG_TRACE << "[script] " << msg; } private: using log_proxy_t = log_proxy;