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

Adding option to enable tracing the system account. (default: false) #1295

Merged
merged 4 commits into from
Mar 2, 2020

Conversation

matthiashanel
Copy link
Contributor

Use sys_trace option in config file or --sys_trace on the command line

I made this non reloadable as this affects clients and reload does not alter existing clients.
(Will address this in a separate PR)

Use sys_trace option in config file or --sys_trace on the command line

Signed-off-by: Matthias Hanel <mh@synadia.com>
main.go Outdated Show resolved Hide resolved
@matthiashanel matthiashanel marked this pull request as ready for review March 2, 2020 17:33
@derekcollison
Copy link
Member

I would like -SV for system trace command line, and sys_trace: true for config file.

@kozlovic
Copy link
Member

kozlovic commented Mar 2, 2020

@derekcollison Not -SV since this will conflict with NATS Streaming that has -SV for streaming trace..

@derekcollison
Copy link
Member

Bummer, ok -VV as @matthiashanel suggested then.

@matthiashanel
Copy link
Contributor Author

added DVV and VV. Intended to keep sys_trace, when specified only the system account will produce traces.
ok?

@derekcollison
Copy link
Member

Yes that sounds good.

server/client.go Outdated Show resolved Hide resolved
Signed-off-by: Matthias Hanel <mh@synadia.com>
Signed-off-by: Matthias Hanel <mh@synadia.com>
@matthiashanel
Copy link
Contributor Author

Only tracing the system account was not easily possible.
(tracing selectively would have blown this up quite a bit)
Instead I renamed the config option to trace_verbose. When set it enables tracing as well.

main.go Outdated Show resolved Hide resolved
server/client.go Outdated Show resolved Hide resolved
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something is wrong with the name of the field you are tracking (syslog).

server/opts.go Outdated Show resolved Hide resolved
server/opts.go Outdated Show resolved Hide resolved
server/events.go Show resolved Hide resolved
Signed-off-by: Matthias Hanel <mh@synadia.com>
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

4 participants