Merge pull request #9676 from gyuho/logger

*: highlight "--log-package-levels" deprecation in v3.5
This commit is contained in:
Gyuho Lee 2018-05-02 09:39:18 -07:00 committed by GitHub
commit 53f51b2f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -14,6 +14,7 @@ See [code changes](https://github.com/coreos/etcd/compare/v3.4.0...v3.5.0) and [
- `curl -L http://localhost:2379/v3beta/kv/put -X POST -d '{"key": "Zm9v", "value": "YmFy"}'` does work in v3.5. Use `curl -L http://localhost:2379/v3/kv/put -X POST -d '{"key": "Zm9v", "value": "YmFy"}'` instead.
- **`etcd --log-output` has been deprecated**. Use **`etcd --log-outputs`** instead.
- **`etcd --logger=capnslog` has been deprecated**. Now, **`etcd --logger=zap`** is the default.
- **`etcd --log-package-levels` for `capnslog` has been deprecated**. Now, **`etcd --logger=zap`** is the default.
### gRPC gateway

View File

@ -34,6 +34,17 @@ v3.4 renamed [`etcd --log-output` to `--log-outputs`](https://github.com/coreos/
+etcd --log-outputs stderr,a.log
```
#### Deprecated in `etcd --log-package-levels`
**`etcd --log-package-levels` for `capnslog` has been deprecated**.
Now, **`etcd --logger=zap`** is the default.
```diff
-etcd --log-package-levels 'etcdmain=CRITICAL,etcdserver=DEBUG'
+etcd --logger=zap
```
#### Changed gRPC gateway HTTP endpoints (deprecated `/v3beta`)
Before

View File

@ -128,8 +128,7 @@ peer-transport-security:
# Enable debug-level logging for etcd.
debug: false
# Specify a particular log level for each etcd package (eg: 'etcdmain=CRITICAL,etcdserver=DEBUG'.
log-package-levels:
logger: zap
# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd.
log-outputs: [default]