Skip to content

Commit

Permalink
- add channel id to plain log
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed Jan 7, 2024
1 parent b08cd98 commit 13b51fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcoder/utils/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 13b51fd

Please sign in to comment.