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

Implement Nginx::SSL.errlogger (and Nginx::SSL.log) #215

Merged
merged 2 commits into from
Sep 26, 2016

Conversation

hfm
Copy link
Collaborator

@hfm hfm commented Sep 26, 2016

No description provided.

@hfm hfm changed the title [wip] Implement Nginx::SSL.errlogger (and Nginx::SSL.log) Implement Nginx::SSL.errlogger (and Nginx::SSL.log) Sep 26, 2016
mrb_define_const(mrb, class_ssl, "LOG_WARN", mrb_fixnum_value(NGX_LOG_WARN));
mrb_define_const(mrb, class_ssl, "LOG_NOTICE", mrb_fixnum_value(NGX_LOG_NOTICE));
mrb_define_const(mrb, class_ssl, "LOG_INFO", mrb_fixnum_value(NGX_LOG_INFO));
mrb_define_const(mrb, class_ssl, "LOG_DEBUG", mrb_fixnum_value(NGX_LOG_DEBUG));
Copy link
Owner

@matsumotory matsumotory Sep 26, 2016

Choose a reason for hiding this comment

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

Why did you re-implement error log constants for Nginx::SSL class instead of Nginx core class constants like Nginx::LOG_NOTICE?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought it better to re-implement them because Nginx::Stream class has LOG constants. But, come to think of it, I need not have re-implemented them.

I'll remove them.

Copy link
Owner

Choose a reason for hiding this comment

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

Nginx::Stream doesn't have the core class. So, it need to re-implement the constants. While Nginx::SSL have the core class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, I understood it.

@matsumotory
Copy link
Owner

Thank you for your PR. Your code looks good to me. I commented only one question. Please check it.

@matsumotory
Copy link
Owner

Thank you for the change. I'll merge after CI.

@matsumotory matsumotory merged commit b4c5bf5 into matsumotory:master Sep 26, 2016
@hfm hfm deleted the ssl-errlogger branch September 26, 2016 10:46
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.

2 participants