Skip to content
Snippets Groups Projects
Commit f741a8fe authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #10725: conference_obj: cleanup logging

parent 9d148dd5
No related branches found
No related tags found
No related merge requests found
...@@ -38,20 +38,21 @@ ...@@ -38,20 +38,21 @@
#include "calltab.h" #include "calltab.h"
#include "calllist.h" #include "calllist.h"
conference_obj_t *create_new_conference(conference_state_t state, const gchar* const confID) conference_obj_t *
create_new_conference(conference_state_t state, const gchar* const confID)
{ {
if (confID == NULL) { if (confID == NULL) {
ERROR("Conference: Error: Conference ID is NULL while creating new conference"); ERROR("Conference ID is NULL while creating new conference");
return NULL; return NULL;
} }
DEBUG("Conference: Create new conference %s", confID); DEBUG("Create new conference %s", confID);
// Allocate memory // Allocate memory
conference_obj_t *new_conf = g_new0(conference_obj_t, 1); conference_obj_t *new_conf = g_new0(conference_obj_t, 1);
if (!new_conf) { if (!new_conf) {
ERROR("Conference: Error: Could not allocate data "); ERROR("Could not allocate data ");
return NULL; return NULL;
} }
...@@ -114,7 +115,7 @@ void conference_add_participant_number(const gchar *call_id, conference_obj_t *c ...@@ -114,7 +115,7 @@ void conference_add_participant_number(const gchar *call_id, conference_obj_t *c
callable_obj_t *call = calllist_get_call(current_calls_tab, call_id); callable_obj_t *call = calllist_get_call(current_calls_tab, call_id);
if (!call) { if (!call) {
ERROR("Conference: Error: Could not find %s", call_id); ERROR("Could not find %s", call_id);
return; return;
} }
...@@ -124,7 +125,7 @@ void conference_add_participant_number(const gchar *call_id, conference_obj_t *c ...@@ -124,7 +125,7 @@ void conference_add_participant_number(const gchar *call_id, conference_obj_t *c
void conference_add_participant(const gchar* call_id, conference_obj_t* conf) void conference_add_participant(const gchar* call_id, conference_obj_t* conf)
{ {
DEBUG("Conference: Conference %s, adding participant %s", conf->_confID, call_id); DEBUG("Conference %s, adding participant %s", conf->_confID, call_id);
// store the new participant list after appending participant id // store the new participant list after appending participant id
conf->participant_list = g_slist_append(conf->participant_list, (gpointer) g_strdup(call_id)); conf->participant_list = g_slist_append(conf->participant_list, (gpointer) g_strdup(call_id));
...@@ -142,10 +143,8 @@ void conference_remove_participant(const gchar* call_id, conference_obj_t* conf) ...@@ -142,10 +143,8 @@ void conference_remove_participant(const gchar* call_id, conference_obj_t* conf)
void conference_participant_list_update(gchar** participants, conference_obj_t* conf) void conference_participant_list_update(gchar** participants, conference_obj_t* conf)
{ {
DEBUG("Conference: Participant list update");
if (!conf) { if (!conf) {
ERROR("Conference: Error: Conference is NULL"); ERROR("Conference is NULL");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment