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

[FIXED] Windows Service: do not force usage of syslog #1025

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented Mar 9, 2020

When starting as a Windows Service, we were creating a syslog to
possibly log the failure to start. But users running without
admin privileges would be unable to use the service since the
server would fail to create the event log entry.
So create the syslog only if explicit set (-syslog option)
or if no logfile has been specified.

Signed-off-by: Ivan Kozlovic ivan@synadia.com

When starting as a Windows Service, we were creating a syslog to
possibly log the failure to start. But users running without
admin privileges would be unable to use the service since the
server would fail to create the event log entry.
So create the syslog only if explicit set (-syslog <bool> option)
or if no logfile has been specified.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic
Copy link
Member Author

kozlovic commented Mar 9, 2020

This was reported through Google mailing list and was confirmed to be addressing the issue: https://groups.google.com/d/msg/natsio/d0Jk3N7iqZ8/Hcds3p5LAQAJ

@kozlovic kozlovic requested a review from ripienaar March 9, 2020 18:04
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 91.9% when pulling c9090b8 on fix_nosyslog_if_logfile_specified into 45c32b7 on master.

Copy link
Collaborator

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit 5bd711c into master Mar 10, 2020
@kozlovic kozlovic deleted the fix_nosyslog_if_logfile_specified branch March 10, 2020 18:05
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