trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Debug Tags of Plugins Cannot Be Turned On at Startup

Open moonchen opened this issue 1 year ago • 3 comments

I tried to turn on a debug tag for a plugin, but didn't see the debug prints. I tried using the traffic_server -T <tags> command line option, and editing records.yaml and setting ts.diags.debug.tags. Neither caused debug messages to print.

I think the problem is that the tags are evaluated before plugin load, and somehow the code to check if new debug tags are turned on via the regex is somehow not giving the correct value for the plugin's tag.

I'm working around this currently by adding code to DbgCtl::_new_reference to hard-code tags to turn on by name.

moonchen avatar Feb 16 '24 00:02 moonchen

Is the problem you are seeing different from this one? https://the-asf.slack.com/archives/CHQ1FJ9EG/p1706825958698989

ywkaras avatar Feb 16 '24 15:02 ywkaras

Is the problem you are seeing different from this one? https://the-asf.slack.com/archives/CHQ1FJ9EG/p1706825958698989

I think they might be the same issue.

moonchen avatar Feb 22 '24 19:02 moonchen

Talked about this in the PR/issue scrub @moonchen will verify if is is still an issue.

bryancall avatar Mar 04 '24 23:03 bryancall