From 13b51fd8c33408360e04741513c4ba572f352aa1 Mon Sep 17 00:00:00 2001 From: igorshevach Date: Sun, 7 Jan 2024 12:41:49 +0200 Subject: [PATCH] - add channel id to plain log --- transcoder/utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/utils/logger.c b/transcoder/utils/logger.c index 463f4bb6..9caab739 100644 --- a/transcoder/utils/logger.c +++ b/transcoder/utils/logger.c @@ -80,7 +80,7 @@ void logger2(const char* category,const char* subcategory,int level,const char * stringify_message(out, fmt, args); fprintf( out, "}\n" ); } else { - fprintf( out, "%s.%03ld %s:%s %s |%s| [%lx] ",buf,( (now % 1000000)/1000 ),category,subcategory!=NULL ? subcategory : "", levelStr,context_id,pthread_self()); + fprintf( out, "%s.%03ld %s:%s %s |%s| [%s] [%lx] ",buf,( (now % 1000000)/1000 ),category,subcategory!=NULL ? subcategory : "", levelStr,context_id,channel_id,pthread_self()); if (args!=NULL) { vfprintf( out, fmt, args ); } else {