Skip to content

Commit

Permalink
Documentation/upgrades: highlight "embed.Config.LogOutputs" change
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Apr 25, 2018
1 parent d4987f4 commit 53c5cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/upgrades/upgrade_3_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ cfg := &embed.Config{Debug: false}
-cfg.SetupLogging()
```

Changed [`embed.Config.LogOutput` type from `string` to `[]string`](https://github.com/coreos/etcd/pull/9579) to support multiple log outputs.
Renamed [**`embed.Config.LogOutput`** to **`embed.Config.LogOutputs`**](https://github.com/coreos/etcd/pull/9624) to support multiple log outputs. And changed [`embed.Config.LogOutput` type from `string` to `[]string`](https://github.com/coreos/etcd/pull/9579) to support multiple log outputs.

```diff
import "github.com/coreos/etcd/embed"

cfg := &embed.Config{Debug: false}
-cfg.LogOutput = "stderr"
+cfg.LogOutput = []string{"stderr"}
+cfg.LogOutputs = []string{"stderr"}
```

#### Change in `etcd --config-file`
Expand Down

0 comments on commit 53c5cd5

Please sign in to comment.