[FFmpeg-devel,3/7] ffserver.c: better logging

Submitted by Stephan Holljes on Aug. 1, 2018, 11 p.m.

Details

Message ID 1533164424-12395-4-git-send-email-klaxa1337@googlemail.com
State New
Headers show

Commit Message

Stephan Holljes Aug. 1, 2018, 11 p.m.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
---
 ffserver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/ffserver.c b/ffserver.c
index 087963a..9cc501c 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -724,7 +724,6 @@  void *fileserver_thread(void *arg)
     struct FileserverClient *c;
     for (;;) {
         usleep(500000);
-        av_log(NULL, AV_LOG_WARNING, "Checking clients, fileserver-thread %s: ", fs->server_name);
         clients_served = 0;
         for (i = 0; i < MAX_CLIENTS; i++) {
             c = &fs->clients[i];
@@ -740,7 +739,7 @@  void *fileserver_thread(void *arg)
             }
             pthread_mutex_unlock(&c->client_lock);
         }
-        av_log(NULL, AV_LOG_WARNING, "%d/%d served\n", clients_served, MAX_CLIENTS);
+        av_log(NULL, AV_LOG_INFO, "Checked clients, fileserver-thread %s %d/%d served\n", fs->server_name, clients_served, MAX_CLIENTS);
         if (fs->shutdown) {
             printf("shutting down\n");
             break;