From 603b2f583c3be45481d2d0e45e8ee8bfa9cfbfcf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 5 Dec 2019 17:48:16 +0100 Subject: Revert "Make fmt() non-recursive" This reverts commit 2b761d5f50b7dc17dc55c31980c2253c37b3c920. Also *really* make fmt() take arguments by reference. --- src/libutil/logging.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/logging.hh') diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index 3fbd75562..beb5e6b64 100644 --- a/src/libutil/logging.hh +++ b/src/libutil/logging.hh @@ -161,7 +161,7 @@ template inline void warn(const std::string & fs, const Args & ... args) { boost::format f(fs); - nop{boost::io::detail::feed(f, args)...}; + formatHelper(f, args...); logger->warn(f.str()); } -- cgit v1.2.3