Bug 1019243
Summary: | engine.log log level can not be set | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | David Jaša <djasa> |
Component: | ovirt-engine | Assignee: | Nobody <nobody> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.3.0 | CC: | acathrow, alonbl, iheim, lpeer, lyarwood, pzhukov, Rhev-m-bugs, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-15 18:04:50 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
David Jaša
2013-10-15 11:11:17 UTC
> but even when the level is changed to DEBUG ... and the engine is restarted >, engine.log still shows only INFO and more severe log levels. You need to change: <logger category="org.ovirt" use-parent-handlers="false"> <level name="INFO"/> and: <logger category="org.ovirt" use-parent-handlers="false"> <level name="INFO"/> and maybe: <logger category="org.ovirt.engine.core.bll"> <level name="INFO"/> (In reply to Alon Bar-Lev from comment #2) > You need to change: > > <logger category="org.ovirt" use-parent-handlers="false"> > <level name="INFO"/> > > and: > > <logger category="org.ovirt" use-parent-handlers="false"> > <level name="INFO"/> > > and maybe: > > <logger category="org.ovirt.engine.core.bll"> > <level name="INFO"/> it works for me (IS18) Yeah, but that needs to be in /etc with sane default categories because: * files in /usr are considered part of the program * the particular file is not a config file for RPM: [root@rhevm33 ~]# rpm -q -a --configfiles '*rhev*' | grep /etc/ovirt-engine | wc -l 21 [root@rhevm33 ~]# rpm -q -a --configfiles '*rhev*' | grep /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in | wc -l 0 * fiddling with configs in the file can easily break logging for whole RHEV-M (I managed to have DEBUG level for all components in server.log with all occurences of level/name set to INFO - producing 5 GB/day) By "sane default categories" I mean that I'm now trying to hunt for something on vdsm -> backend -> db path and having all the debug output from frontend, api, locking etc. doesnt't exactly help - so it would make sense to have stanzas in config that would allow log level settings per component in addition to global default log level. (In reply to David Jaša from comment #4) > Yeah, but that needs to be in /etc with sane default categories because: > * files in /usr are considered part of the program > * the particular file is not a config file for RPM: > [root@rhevm33 ~]# rpm -q -a --configfiles '*rhev*' | grep /etc/ovirt-engine > | wc -l > 21 > [root@rhevm33 ~]# rpm -q -a --configfiles '*rhev*' | grep > /usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in | wc -l > 0 Unrelated to first claim of non working... see bug#1017042 > * fiddling with configs in the file can easily break logging for whole > RHEV-M (I managed to have DEBUG level for all components in server.log with > all occurences of level/name set to INFO - producing 5 GB/day) This is debug setting not production. > By "sane default categories" I mean that I'm now trying to hunt for > something on vdsm -> backend -> db path and having all the debug output from > frontend, api, locking etc. doesnt't exactly help - so it would make sense > to have stanzas in config that would allow log level settings per component > in addition to global default log level. This is doable by engineering request, per requested class names. If you have use cases we can consider adding these into the default service file, this belongs to bug#1017042 Closing this as not a bug as no problem in "engine.log log level can not be set" |