Feature #24114
closedEnable configuration setting to turn on foreman tasks cleanup logging
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1594882
Steps to Reproduce:
For debugging foreman-tasks cleanup, we asked one customer to enable the logging in the code as follows:
apply this patch against `/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.*` directory, to increase cleanup logging information:
diff --git a/lib/foreman_tasks/cleaner.rb b/lib/foreman_tasks/cleaner.rb
index 956dbe2..85e6480 100644
--- a/lib/foreman_tasks/cleaner.rb
++ b/lib/foreman_tasks/cleaner.rb@ -79,7 +79,7
@ module ForemanTasks
:states => ['stopped'],
:backup_dir=ForemanTasks.dynflow.world.persistence.current_backup_dir }
options = default_options.merge(options)
-
Foreman::Logging.logger('foreman-tasks').info("Running foreman-tasks cleaner with options #{options.inspect}")
@filter = options[:filter]
@after = parse_time_interval(options[:after])
@states = options[:states]
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Pull request https://github.com/theforeman/foreman-tasks/pull/351 added
Updated by Ivan Necas over 6 years ago
- Related to Feature #22915: Have a Mechanism to Proactively Detect and Clean "orphaned" Dynflow Tasks added
Updated by Ivan Necas over 6 years ago
- Subject changed from Enable configuration setting to turn on foreman tasks cleanup logging to Enable configuration setting to turn on foreman tasks cleanup logging
Just noting, that some logging was also added as part of #22915
Updated by Ivan Necas over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 41d4b24a3cc90d1d028c87b17b25e47d18223548.
Updated by Ivan Necas over 6 years ago
- Target version set to foreman-tasks-0.13.4 (Foreman 1.18)
- Fixed in Releases foreman-tasks-0.13.4 (Foreman 1.18), foreman-tasks-0.14.0 (Foreman 1.20) added