Skip to content

Commit

Permalink
Do not start syslog ourselves
Browse files Browse the repository at this point in the history
It will be started automatically because it is in our applications. We
also should not include logger in our applications because we don't want
to start it before we start.
  • Loading branch information
aaronjensen committed May 18, 2016
1 parent 13fea0d commit 9fecd50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ defp deps do
end
```

Add `:exsyslog` to your list of `included_applications`:
Add `:exsyslog` to your list of `applications`, be sure to put it at the
beginning, before `:logger` or anything that requires it:

```elixir
def application do
[included_applications: [:exsyslog]]
[applications: [:exsyslog]]
end
```

Expand Down
1 change: 0 additions & 1 deletion lib/ex_syslog.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ defmodule ExSyslog do
def init({__MODULE__, name}) do
config = get_config(name, [])

:syslog.start()
{:ok, log} = open_log(config)

{:ok, %{name: name, log: log, config: config}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Exsyslog.Mixfile do
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger, :syslog, :poison]]
[applications: [:syslog, :poison]]
end

defp description do
Expand Down

0 comments on commit 9fecd50

Please sign in to comment.