diff --git a/daemon/call.c b/daemon/call.c index 4333d1578..ac3fa5158 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2604,7 +2604,7 @@ static void __call_free(void *p) { struct packet_stream *ps; struct endpoint_map *em; - ilog(LOG_DEBUG, "freeing main call struct"); + //ilog(LOG_DEBUG, "freeing main call struct"); obj_put(c->dtls_cert); diff --git a/daemon/codec.c b/daemon/codec.c index 164cc1f11..f767a7407 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -3512,7 +3512,7 @@ void codecs_cleanup(void) { } void codec_timers_loop(void *p) { #ifdef WITH_TRANSCODING - ilog(LOG_DEBUG, "codec_timers_loop"); + //ilog(LOG_DEBUG, "codec_timers_loop"); timerthread_run(&codec_timers_thread); #endif } diff --git a/daemon/dtls.c b/daemon/dtls.c index dd3485464..e0beaea2b 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -812,7 +812,8 @@ void dtls_shutdown(struct packet_stream *ps) { } void dtls_connection_cleanup(struct dtls_connection *c) { - ilog(LOG_DEBUG, "Resetting DTLS connection context"); + if (c->ssl_ctx || c->ssl) + ilog(LOG_DEBUG, "Resetting DTLS connection context"); if (c->ssl_ctx) SSL_CTX_free(c->ssl_ctx); diff --git a/daemon/jitter_buffer.c b/daemon/jitter_buffer.c index 7370379ca..d3b1b56d6 100644 --- a/daemon/jitter_buffer.c +++ b/daemon/jitter_buffer.c @@ -19,12 +19,12 @@ static struct timerthread jitter_buffer_thread; void jitter_buffer_init(void) { - ilog(LOG_DEBUG, "jitter_buffer_init"); + //ilog(LOG_DEBUG, "jitter_buffer_init"); timerthread_init(&jitter_buffer_thread, timerthread_queue_run); } void jitter_buffer_init_free(void) { - ilog(LOG_DEBUG, "jitter_buffer_free"); + //ilog(LOG_DEBUG, "jitter_buffer_free"); timerthread_free(&jitter_buffer_thread); } @@ -37,7 +37,7 @@ static void jitter_buffer_flush(struct jitter_buffer *jb) { // jb is locked static void reset_jitter_buffer(struct jitter_buffer *jb) { - ilog(LOG_INFO, "reset_jitter_buffer"); + //ilog(LOG_INFO, "reset_jitter_buffer"); jb->first_send_ts = 0; jb->first_send.tv_sec = 0; diff --git a/daemon/media_player.c b/daemon/media_player.c index de531e161..685ea3dfa 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -52,7 +52,7 @@ static void media_player_shutdown(struct media_player *mp) { if (!mp) return; - ilog(LOG_DEBUG, "shutting down media_player"); + //ilog(LOG_DEBUG, "shutting down media_player"); timerthread_obj_deschedule(&mp->tt_obj); mp->next_run.tv_sec = 0; avformat_close_input(&mp->fmtctx); @@ -90,7 +90,7 @@ void media_player_stop(struct media_player *mp) { static void __media_player_free(void *p) { struct media_player *mp = p; - ilog(LOG_DEBUG, "freeing media_player"); + //ilog(LOG_DEBUG, "freeing media_player"); media_player_shutdown(mp); ssrc_ctx_put(&mp->ssrc_out); @@ -103,7 +103,7 @@ static void __media_player_free(void *p) { // call->master_lock held in W struct media_player *media_player_new(struct call_monologue *ml) { #ifdef WITH_TRANSCODING - ilog(LOG_DEBUG, "creating media_player"); + //ilog(LOG_DEBUG, "creating media_player"); uint32_t ssrc = 0; while (ssrc == 0) @@ -135,7 +135,7 @@ struct media_player *media_player_new(struct call_monologue *ml) { static void __send_timer_free(void *p) { struct send_timer *st = p; - ilog(LOG_DEBUG, "freeing send_timer"); + //ilog(LOG_DEBUG, "freeing send_timer"); obj_put(st->call); } @@ -150,7 +150,7 @@ static void __send_timer_send_later(struct timerthread_queue *ttq, void *p) { // call->master_lock held in W struct send_timer *send_timer_new(struct packet_stream *ps) { - ilog(LOG_DEBUG, "creating send_timer"); + //ilog(LOG_DEBUG, "creating send_timer"); struct send_timer *st = timerthread_queue_new("send_timer", sizeof(*st), &send_timer_thread, @@ -698,7 +698,7 @@ static void media_player_run(void *ptr) { log_info_call(call); - ilog(LOG_DEBUG, "running scheduled media_player"); + //ilog(LOG_DEBUG, "running scheduled media_player"); rwlock_lock_r(&call->master_lock); mutex_lock(&mp->lock); @@ -730,11 +730,11 @@ void media_player_free(void) { #ifdef WITH_TRANSCODING void media_player_loop(void *p) { - ilog(LOG_DEBUG, "media_player_loop"); + //ilog(LOG_DEBUG, "media_player_loop"); timerthread_run(&media_player_thread); } #endif void send_timer_loop(void *p) { - ilog(LOG_DEBUG, "send_timer_loop"); + //ilog(LOG_DEBUG, "send_timer_loop"); timerthread_run(&send_timer_thread); } diff --git a/daemon/timerthread.c b/daemon/timerthread.c index 62d2aa780..936e65c7c 100644 --- a/daemon/timerthread.c +++ b/daemon/timerthread.c @@ -65,8 +65,8 @@ void timerthread_obj_schedule_abs_nl(struct timerthread_obj *tt_obj, const struc if (!tt_obj) return; - ilog(LOG_DEBUG, "scheduling timer object at %llu.%06lu", (unsigned long long) tv->tv_sec, - (unsigned long) tv->tv_usec); + //ilog(LOG_DEBUG, "scheduling timer object at %llu.%06lu", (unsigned long long) tv->tv_sec, + //(unsigned long) tv->tv_usec); struct timerthread *tt = tt_obj->tt; if (tt_obj->next_check.tv_sec && timeval_cmp(&tt_obj->next_check, tv) <= 0) @@ -209,10 +209,10 @@ void timerthread_queue_push(struct timerthread_queue *ttq, struct timerthread_qu // queue for sending - ilog(LOG_DEBUG, "queuing up %s object for processing at %lu.%06u", - ttq->type, - (unsigned long) ttqe->when.tv_sec, - (unsigned int) ttqe->when.tv_usec); + //ilog(LOG_DEBUG, "queuing up %s object for processing at %lu.%06u", + //ttq->type, + //(unsigned long) ttqe->when.tv_sec, + //(unsigned int) ttqe->when.tv_usec); // XXX recover log line fields // struct rtp_header *rh = (void *) cp->s.s; @@ -278,7 +278,7 @@ unsigned int timerthread_queue_flush(struct timerthread_queue *ttq, void *ptr) { void timerthread_queue_flush_data(void *ptr) { struct timerthread_queue *ttq = ptr; - ilog(LOG_DEBUG, "timerthread_queue_flush_data"); + //ilog(LOG_DEBUG, "timerthread_queue_flush_data"); mutex_lock(&ttq->lock); while (g_tree_nnodes(ttq->entries)) {