| Summary: | Reducing the log level doesnt seem to work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jaspreet Kaur <jkaur> |
| Component: | Node | Assignee: | Seth Jennings <sjenning> |
| Status: | CLOSED NOTABUG | QA Contact: | DeShuai Ma <dma> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.2.0 | CC: | aos-bugs, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-03 03:01:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jaspreet Kaur
2016-09-21 10:59:49 UTC
I suspect that the article is incorrect about the exact meanings of the loglevels, as I believe 0 is "Error" and so forth, but it is rather moot because I observe no appreciable difference whether level is set to 0, 1, or 2. Setting a better component for moving this forward. Seth - can you track this down? glog, the golang logging library that openshift uses has two orthogonal logging patterns.
Messages are logged by either severity OR verbosity.
Log severities are FATAL, ERROR, WARNING, and INFO. These don't relate to the loglevel in any way. For example:
glog.Warningln("This is an warning message")
will print to the warning and info log files regardless of the loglevel.
Log verbosity is a number 0-5. Verbosity is not meant to convey severity but is meant more to control log growth. In fact, it is probably best thought of as debug levels (below INFO in severity)
glog.Infoln("This is an information message")
glog.V(0).Infoln("This is a important debug message")
Any log level > 0 should really only ever been used when debugging an issue. Under normal operating conditions, loglevel should not be set as it does lead to large logs.
I have submitted a change to the incorrect documentation. |