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

ex_syslogger has problems when part of a larger application with releases #1

Merged
merged 1 commit into from
Sep 30, 2016
Merged

ex_syslogger has problems when part of a larger application with releases #1

merged 1 commit into from
Sep 30, 2016

Conversation

hazardfn
Copy link

@hazardfn hazardfn commented Sep 30, 2016

Problem

When you add ex_syslogger as part of a larger application using a release manager like distillery/exrm :syslog can be started twice and depending on where you place :ex_syslogger in the list of applications/included_applications this can crash your application or cause a DRV_IN_USE error message which doesn't crash the app but is still an issue.

Solution

In this case I feel the :logger application should be responsible for starting :syslog as really they are only needed when you have an :ex_syslogger backend configured.

With this "code" change syslog is only started when you have a configured syslogger backend, it is started once by logger (in the init function).

EDIT

I noticed somebody over at the original project this was forked from posed a similar fix:

22cans/exsyslog#6

…sts in the logger backend, this way we only start syslog if we have a configured backend and it prevents it from being started twice which crashes applications
@slashmili slashmili merged commit ed5c330 into slashmili:master Sep 30, 2016
@slashmili
Copy link
Owner

Pushed the changes to hex

Thanks for fix 🎉

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