Merge pull request #3594 from weaveworks/document_weave_log_warning_and_error_levels

Document weave log warning and error levels
This commit is contained in:
Bryan Boreham authored and GitHub committed 2019-02-07 16:38:46 +00:00
commit e23e364476
1 file changed
+5 -2
+5 -2
View File
@@ -209,10 +209,10 @@ ask for the logs like this:
$ kubectl logs -n kube-system weave-net-1jkl6 weave
```
For easier viewing, pipe the output into a file , especially if
For easier viewing, pipe the output into a file, especially if
it is long.
By default log level of `weave` container is set to `info` level. If you wish to see more detailed logs you can set the desired log level for the `-log-level` flag through the `EXTRA_ARGS` environment variable for the `weave` container in the weave-net daemon set. Add environment variable as below.
By default log level of `weave` container is set to `info` level. If you wish to see more detailed logs you can set the desired log level for the `--log-level` flag through the `EXTRA_ARGS` environment variable for the `weave` container in the weave-net daemon set. Add environment variable as below.
```yaml
containers:
@@ -224,6 +224,9 @@ By default log level of `weave` container is set to `info` level. If you wish to
value: --log-level=debug
```
You may also set the `--log-level` flag to `warning` or `error` if you
prefer to only log exceptional conditions.
Many Kubernetes network issues occur at a higher level than Weave Net.
The [Kubernetes Service Debugging Guide]
(https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/)