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

[cli] fix logging to syslog #858

Merged
merged 1 commit into from Aug 28, 2018
Merged

[cli] fix logging to syslog #858

merged 1 commit into from Aug 28, 2018

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Aug 28, 2018

Part of #712
Fixes issue introduced by #857

Log path starting with syslog: or memory: is not relative path, but
has to be passed to nginx unchanged.

For how to configure syslog see nginx documentation: http://nginx.org/en/docs/syslog.html

@mikz mikz requested a review from a team as a code owner August 28, 2018 11:51
local new = _M.new

local log_levels = {
debug = ngx.DEBUG,
Copy link

Choose a reason for hiding this comment

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

value assigned to field 'debug' is overwritten on line 21 before use

@mikz mikz mentioned this pull request Aug 28, 2018
4 tasks
Part of #712
Fixes issue introduced by #857

Log path starting with `syslog:` or `memory:` is not relative path, but
has to be passed to nginx unchanged.
use lib 't';
use Test::APIcast::Blackbox 'no_plan';

repeat_each(3);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need 3 for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2 probably would do, but I feel better with 3

@mikz mikz merged commit e1ed301 into master Aug 28, 2018
@mikz mikz deleted the syslog-logging branch August 28, 2018 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants