Bug 1442947
Summary: | "virtlogd --verbose" doesn't output verbose messages | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Fangge Jin <fjin> |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Fangge Jin <fjin> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.4 | CC: | dyuan, eskultet, rbalakri, xuzhang, yafu, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-3.7.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 10:42:33 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: | |
Embargoed: |
Description
Fangge Jin
2017-04-18 07:24:35 UTC
*** Bug 1457193 has been marked as a duplicate of this bug. *** Fixed upstream by: commit b988f794e307fc6421ea7b13292a048bdca94f6a Refs: v3.6.0-216-gb988f794e Author: Erik Skultety <eskultet> AuthorDate: Fri Aug 25 16:58:51 2017 +0200 Commit: Erik Skultety <eskultet> CommitDate: Mon Aug 28 16:42:13 2017 +0200 daemon: logging: Fix --verbose option being ignored by the daemon Commit 94c465d0 refactored the logging setup phase but introduced an issue, where the daemon ignores verbose mode when there are no outputs defined and the default must be used. The problem is that the default output was determined too early, thus ignoring the potential '--verbose' option taking effect. This patch postpones the creation of the default output to the very last moment when nothing else can change. Since the default output is only created during the init phase, it's safe to leave the pointer as NULL for a while, but it will be set eventually, thus not affecting runtime. Patch also adjusts both the other daemons. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1442947 Signed-off-by: Erik Skultety <eskultet> Verify on build libvirt-3.8.0-1.el7.x86_64. Test these scenarios: # libvirtd --verbose # virtlogd --verbose # virtlockd --verbose Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:0704 |