Commit 5aa11b8c authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Improved some logs verbosity to improve logs file readability, specifically when Core starts

parent 06021f67
......@@ -74,7 +74,10 @@ static void cleanup_dead_vtable_refs(LinphoneCore *lc){
}\
}\
lc->vtable_notify_recursion--;\
if (has_cb) ms_message("Linphone core [%p] notified [%s]",lc,#function_name)
if (has_cb) {\
if (linphone_core_get_global_state(lc) == LinphoneGlobalStartup) { ms_debug("Linphone core [%p] notified [%s]",lc,#function_name); }\
else { ms_message("Linphone core [%p] notified [%s]",lc,#function_name); }\
}
#define NOTIFY_IF_EXIST_INTERNAL(function_name, internal_val, ...) \
bctbx_list_t* iterator; \
......
......@@ -382,7 +382,11 @@ ClientGroupChatRoom::ClientGroupChatRoom (
bool_t forceFullState = linphone_config_get_bool(linphone_core_get_config(getCore()->getCCore()), "misc", "conference_event_package_force_full_state", FALSE);
getConference()->setLastNotify(forceFullState ? 0 : lastNotifyId);
lInfo() << "Last notify set to [" << getConference()->getLastNotify() << "] for conference [" << this << "]";
if (linphone_core_get_global_state(getCore()->getCCore()) == LinphoneGlobalStartup) {
lDebug() << "Last notify set to [" << getConference()->getLastNotify() << "] for conference [" << this << "]";
} else {
lInfo() << "Last notify set to [" << getConference()->getLastNotify() << "] for conference [" << this << "]";
}
if (!hasBeenLeft){
getCore()->getPrivate()->remoteListEventHandler->addHandler(static_pointer_cast<RemoteConference>(getConference())->eventHandler.get());
......
......@@ -23,6 +23,7 @@
#include "content/content.h"
#include "content/content-disposition.h"
#include "content/content-type.h"
#include "core/core.h"
#include "logger/logger.h"
#include "participant.h"
......@@ -396,7 +397,11 @@ shared_ptr<ConferenceParticipantDeviceEvent> Conference::notifyParticipantDevice
void Conference::setState (LinphonePrivate::ConferenceInterface::State state) {
if (this->state != state) {
lInfo() << "Switching conference [" << this << "] from state " << this->state << " to " << state;
if (linphone_core_get_global_state(getCore()->getCCore()) == LinphoneGlobalStartup) {
lDebug() << "Switching conference [" << this << "] from state " << this->state << " to " << state;
} else {
lInfo() << "Switching conference [" << this << "] from state " << this->state << " to " << state;
}
this->state = state;
notifyStateChanged(state);
}
......
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