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

feat(serf) optionally log Serf commands #2410

Merged
merged 2 commits into from
Apr 22, 2017
Merged

feat(serf) optionally log Serf commands #2410

merged 2 commits into from
Apr 22, 2017

Conversation

subnetmarco
Copy link
Member

Small patch that gives more visibility to the commands that are being executed by Serf.

Full changelog

  • Serf commands are now logged with a DEBUG log level

kong/serf.lua Outdated
@@ -35,6 +38,7 @@ function Serf:invoke_signal(signal, args, no_rpc, full_error)
end
local rpc = no_rpc and "" or "-rpc-addr="..self.config.cluster_listen_rpc
local cmd = string.format("%s %s %s %s", self.config.serf_path, signal, rpc, tostring(args))
ngx_log(DEBUG, cmd)
Copy link
Member

Choose a reason for hiding this comment

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

I think we need some context here, aka prefix the command with some kind of a [serf] running command: prefix, as we do all around the place.

Copy link
Member Author

Choose a reason for hiding this comment

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

Implemented .

@p0pr0ck5
Copy link
Contributor

lgtm

@subnetmarco subnetmarco merged commit a800b26 into master Apr 22, 2017
@subnetmarco subnetmarco deleted the feat/serf-log branch April 22, 2017 20:19
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.

3 participants