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]