From d2178160b04f34743aa93493f022fbc431d5a9aa Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 9 May 2014 17:11:50 +0300 Subject: [PATCH] small line_logger change --- include/c11log/details/line_logger.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/c11log/details/line_logger.h b/include/c11log/details/line_logger.h index aae3f1b3..3ce02556 100644 --- a/include/c11log/details/line_logger.h +++ b/include/c11log/details/line_logger.h @@ -24,12 +24,7 @@ public: _log_msg(msg_level), _oss(), _enabled(enabled) - { - if(enabled) - { - _log_msg.time = log_clock::now(); - } - } + {} // No copy intended. Only move line_logger(const line_logger& other) = delete; @@ -51,6 +46,7 @@ public: { if (_enabled) { + _log_msg.time = log_clock::now(); _log_msg.raw = _oss.str(); _callback_logger->_log_it(_log_msg); }