From cea02a5b741c3fdb33f06c05c021926f1b05842e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 28 May 2018 18:05:39 +0800 Subject: [PATCH] bug fixed --- c_wrapper/src/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c_wrapper/src/common.cpp b/c_wrapper/src/common.cpp index 687fb415..76f7fefa 100755 --- a/c_wrapper/src/common.cpp +++ b/c_wrapper/src/common.cpp @@ -132,16 +132,16 @@ API_EXPORT void API_CALL log_setLevel(LogType level){ class LogoutChannel: public LogChannel { public: LogoutChannel(const string &name, onLogOut cb, LogLevel level = LDebug) -:LogChannel(name, level, "%Y-%m-%d %H:%M:%S"){ +:LogChannel(name, level){ _cb = cb; } virtual ~LogoutChannel(){} void write(const LogInfo_ptr &logInfo){ - if (level() > logInfo->getLevel()) { + if (level() > logInfo->_level) { return; } stringstream strStream; - logInfo->format(strStream, timeFormat().data(), false); + logInfo->format(strStream, false); auto strTmp = strStream.str(); if (_cb) { _cb(strTmp.data(), strTmp.size());