]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
hide debug line
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Dec 2010 22:19:56 +0000 (16:19 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Dec 2010 22:19:56 +0000 (16:19 -0600)
libs/stfu/stfu.c

index 2ffb86fdb61ff9e91a8b536bdffa37230833a17c..b7df8ea8707f415d76494fad89a4df864f61eb3d 100644 (file)
@@ -413,7 +413,9 @@ stfu_status_t stfu_n_add_data(stfu_instance_t *i, uint32_t ts, uint32_t pt, void
 
         if (i->last_wr_ts) {
             if ((ts <= i->last_wr_ts && (i->last_wr_ts != UINT_MAX || ts == i->last_wr_ts))) {
-                stfu_log(STFU_LOG_EMERG, "%s TOO LATE !!! %u \n\n\n", i->name, ts);
+                if (stfu_log != null_logger && i->debug) {
+                    stfu_log(STFU_LOG_EMERG, "%s TOO LATE !!! %u \n\n\n", i->name, ts);
+                }
                 if (i->in_queue->array_len < i->in_queue->array_size) {
                     i->in_queue->array_len++;
                 }