Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Tags of Plugins Cannot Be Turned On at Startup #11081

Open
moonchen opened this issue Feb 16, 2024 · 3 comments
Open

Debug Tags of Plugins Cannot Be Turned On at Startup #11081

moonchen opened this issue Feb 16, 2024 · 3 comments

Comments

@moonchen
Copy link
Contributor

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.

@ywkaras
Copy link
Contributor

ywkaras commented Feb 16, 2024

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

@moonchen
Copy link
Contributor Author

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.

@bryancall
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants