- minor fixes

This commit is contained in:
Dmytro Bogovych 2018-07-20 13:54:58 +03:00
parent 8fe79459d5
commit 8cd493018e
3 changed files with 131 additions and 130 deletions

View File

@ -663,7 +663,7 @@ bool UserAgent::operator()(resip::Log::Level level, const resip::Subsystem& subs
ss << "File " << StringHelper::extractFilename(filename).c_str() << ", line " << line << ": " << message.c_str(); ss << "File " << StringHelper::extractFilename(filename).c_str() << ", line " << line << ": " << message.c_str();
if (level <= resip::Log::Crit) if (level <= resip::Log::Crit)
ICELogCritical(<< ss.str()); ICELogCritical(<< ss.str())
else else
if (level <= resip::Log::Warning) if (level <= resip::Log::Warning)
ICELogError(<< ss.str().c_str()) ICELogError(<< ss.str().c_str())

View File

@ -34,8 +34,8 @@ LogLevel LogLevelHelper::parse(const std::string& t)
if (t == "media") if (t == "media")
return LL_MEDIA; return LL_MEDIA;
else else
if (t == "critical") if (t == "error")
return LL_CRITICAL; return LL_ERROR;
else else
if (t == "special") if (t == "special")
return LL_SPECIAL; return LL_SPECIAL;
@ -63,7 +63,7 @@ ice::Logger ice::GLogger;
const char* ice::Logger::TabPrefix = " "; const char* ice::Logger::TabPrefix = " ";
Logger::Logger() Logger::Logger()
:mStream(nullptr) :mStream(nullptr)
{ {
mFile = nullptr; mFile = nullptr;
mUseDebugWindow = false; mUseDebugWindow = false;

View File

@ -44,6 +44,7 @@ public:
class LogHandler class LogHandler
{ {
public: public:
virtual ~LogHandler() {}
virtual void onIceLog(LogLevel level, const std::string& filename, int line, const std::string& subsystem, const std::string& msg) = 0; virtual void onIceLog(LogLevel level, const std::string& filename, int line, const std::string& subsystem, const std::string& msg) = 0;
}; };