Skip to content

Commit a06ef9c

Browse files
committed
Fix missing logger app in KV Server
The end of chapter 9 suggests suppressing the logger during the KV Server restart in the test setup, but :logger was not included as an OTP application dependency in the mix.exs file, resulting in an error. This commit adds the :logger dependency back to the kv_server applications.
1 parent dac67d4 commit a06ef9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

getting_started/mix_otp/7.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ defmodule KVServer.Mixfile do
155155
end
156156

157157
def application do
158-
[applications: [],
158+
[applications: [:logger],
159159
mod: {KVServer, []}]
160160
end
161161

@@ -178,7 +178,7 @@ The second change is in the `application` function inside `mix.exs`:
178178

179179
```elixir
180180
def application do
181-
[applications: [],
181+
[applications: [:logger],
182182
mod: {KVServer, []}]
183183
end
184184
```
@@ -228,7 +228,7 @@ The line above makes `:kv` available as a dependency inside `:kv_server`. We can
228228

229229
```elixir
230230
def application do
231-
[applications: [:kv],
231+
[applications: [:logger, :kv],
232232
mod: {KVServer, []}]
233233
end
234234
```

getting_started/mix_otp/9.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Open up your `apps/kv_server/mix.exs` file and change both `application/0` and `
259259

260260
```elixir
261261
def application do
262-
[applications: [:pipe, :kv],
262+
[applications: [:logger, :pipe, :kv],
263263
mod: {KVServer, []}]
264264
end
265265

0 commit comments

Comments
 (0)