- 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();
if (level <= resip::Log::Crit)
ICELogCritical(<< ss.str());
ICELogCritical(<< ss.str())
else
if (level <= resip::Log::Warning)
ICELogError(<< ss.str().c_str())

View File

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

View File

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