fix(logger): use bctbx log functions instead of ms functions

This commit is contained in:
Ronan Abhamon 2017-11-15 15:47:20 +01:00
parent d70c38f9f5
commit 013c31bc6d

View file

@ -20,7 +20,7 @@
#include <chrono> #include <chrono>
#include <memory> #include <memory>
#include "linphone/core.h" #include <bctoolbox/logging.h>
#include "object/base-object-p.h" #include "object/base-object-p.h"
@ -53,20 +53,20 @@ Logger::~Logger () {
switch (d->level) { switch (d->level) {
case Debug: case Debug:
#if DEBUG_LOGS #if DEBUG_LOGS
ms_debug("%s", str.c_str()); bctbx_debug("%s", str.c_str());
#endif // if DEBUG_LOGS #endif // if DEBUG_LOGS
break; break;
case Info: case Info:
ms_message("%s", str.c_str()); bctbx_message("%s", str.c_str());
break; break;
case Warning: case Warning:
ms_warning("%s", str.c_str()); bctbx_warning("%s", str.c_str());
break; break;
case Error: case Error:
ms_error("%s", str.c_str()); bctbx_error("%s", str.c_str());
break; break;
case Fatal: case Fatal:
ms_fatal("%s", str.c_str()); bctbx_fatal("%s", str.c_str());
break; break;
} }
} }