Commit 4acb6521 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Moved bctoolbox set_log_level from tester to liblinphone

parent 64ca9e82
......@@ -209,6 +209,7 @@ void linphone_core_set_log_level(OrtpLogLevel loglevel) {
void linphone_core_set_log_level_mask(OrtpLogLevel loglevel) {
ortp_set_log_level_mask(NULL, loglevel);
bctbx_set_log_level_mask(NULL, loglevel);
if (loglevel == 0) {
sal_disable_log();
} else {
......
......@@ -213,10 +213,8 @@ int main (int argc, char *argv[])
for(i = 1; i < argc; ++i) {
if (strcmp(argv[i], "--verbose") == 0) {
bctbx_set_log_level(NULL, BCTBX_LOG_MESSAGE);
linphone_core_set_log_level(ORTP_MESSAGE);
} else if (strcmp(argv[i], "--silent") == 0) {
bctbx_set_log_level(NULL, BCTBX_LOG_FATAL);
linphone_core_set_log_level(ORTP_FATAL);
} else if (strcmp(argv[i],"--log-file")==0){
CHECK_ARG("--log-file", ++i, argc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment