Re: [PATCH 4/8] trace: refactor to support multiple env variables
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:39
Jeff King [off-list ref] writes:
quoted
quoted
I think I covered that pretty well above, but you lose the flexibility of pushing different trace types to different places if you want to.That statement illustrates the inflexibility that all packet traces going to a same place rather clearly, doesn't it, though? That "two-tier" thing was my primary concern.Sorry, I don't quite understand what you're saying here.
I was contrasting these two and called that "two-tier thing": - GIT_TRACE_SETUP and GIT_TRACE_PACKET can be used to give you flexibility of sending their output to the same location or to different destination. Nice and flexibile. - Even though the trace identities like "clone", "fetch-pack", etc. are clearly marked in the code, you cannot take advantage of the marking and send the output from these packet sources to different destination, because GIT_TRACE_PACKET is just one and single variable. Clearer? Not that I think the same flexibility in the latter is absolutely necessary, but it somewhat feels inconsistent to have these two classes.