Bug 1609905
Summary: | Debug logging spams evm.log with deprecation warnings | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Tasos Papaioannou <tpapaioa> |
Component: | Appliance | Assignee: | Brandon Dunne <bdunne> |
Status: | CLOSED ERRATA | QA Contact: | Tasos Papaioannou <tpapaioa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9.4 | CC: | abellott, bdunne, dmetzger, obarenbo, simaishi, smallamp |
Target Milestone: | GA | Keywords: | Reopened |
Target Release: | 5.10.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | 5.10.0.15 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-07 23:03:31 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
Tasos Papaioannou
2018-07-30 19:02:47 UTC
Working as designed I don't see how it's working as designed. It's just spamming the logs with the same two statements over and over. A full 85-90% of the debug logging consists of these repeated deprecation warnings. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/df146c89b6e9077f31610540195748c0fa74f0ad commit df146c89b6e9077f31610540195748c0fa74f0ad Author: Brandon Dunne <brandondunne> AuthorDate: Thu Aug 9 15:01:50 2018 -0400 Commit: Brandon Dunne <brandondunne> CommitDate: Thu Aug 9 15:01:50 2018 -0400 Don't log the deprecation debug messages in production Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1609905 lib/vmdb/deprecation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) The commit doesn't fix the issue. The deprecation messages are coming from a different location: /var/www/miq/vmdb/lib/vmdb/config.rb: def initialize(name) _log.debug("VMDB::Config.new is deprecated. Prefer using Settings directly.") @name = name @errors = nil end def config _log.debug("VMDB::Config#config is deprecated. Prefer using Settings directly.") @config ||= self.class.filter_settings_by_name(::Settings.to_hash, name).to_hash end New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/e406368909cfd7d32d86fee47e48d5a39c9a1ca7 commit e406368909cfd7d32d86fee47e48d5a39c9a1ca7 Author: Brandon Dunne <brandondunne> AuthorDate: Thu Aug 30 14:31:38 2018 -0400 Commit: Brandon Dunne <brandondunne> CommitDate: Thu Aug 30 14:31:38 2018 -0400 Use Vmdb::Deprecation rather than custom warnings Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1609905 lib/vmdb/config.rb | 4 +- 1 file changed, 2 insertions(+), 2 deletions(-) Now the deprecation messages are getting logged at WARN level, so they are spamming evm.log without even changing the level to debug. **** [----] W, [2018-09-07T09:52:30.414991 #64183:3f4f80] WARN -- : DEPRECATION WARNING: initialize is deprecated and will be removed from ManageIQ H-release (Prefer using Settings directly) (called from new at /var/www/miq/vmdb/app/models/miq_server/configuration_management.rb:7) [----] W, [2018-09-07T09:52:30.415118 #64183:3f4f80] WARN -- : DEPRECATION WARNING: config is deprecated and will be removed from ManageIQ H-release (Prefer using Settings directly) (called from fetch_worker_settings_from_server at /var/www/miq/vmdb/app/models/miq_worker.rb:193) **** New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/656378447366f7cf06eb83d7e1cf0eca48a12a94 commit 656378447366f7cf06eb83d7e1cf0eca48a12a94 Author: Brandon Dunne <brandondunne> AuthorDate: Fri Sep 7 15:52:21 2018 -0400 Commit: Brandon Dunne <brandondunne> CommitDate: Fri Sep 7 15:52:21 2018 -0400 Consolidate production env checks Don't log any deprecations anywhere in production mode. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1609905 lib/vmdb/deprecation.rb | 4 +- 1 file changed, 2 insertions(+), 2 deletions(-) Verified on 5.10.0.15. 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/RHSA-2019:0212 |