Yeah that sounds suboptimal. Maybe it’d be good enough to leave a
documentation note and mark fixing this as an intern project or
something.
Writing some off thread logging code and writing a poor man’s multi
producer queue sounds like a pretty nice project.

Daniel


On Tue, Oct 9, 2018, at 7:34 PM, Pushkar Pradhan wrote:
> I was going through the code in Diags.cc and I saw that if debug
> logging is> on, ATS calls vfprintf in the thread that handles the client 
> request.> E.g.
> https://github.com/apache/trafficserver/blob/master/src/tscore/Diags.cc#L301>
> Is this a good idea?
> Or is the assumption that if you have turned on debug logging you
> make this> trade off?
>
> --
> pushkar

Reply via email to