From 7deae1b4975e454bb971703808b8a562fde45c22 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 19 Jan 2021 13:13:43 -0500 Subject: [PATCH] Move $miq_ae_logger initialization and configuration into plugin --- .rubocop_local.yml | 1 - config/settings.yml | 1 - lib/vmdb/loggers.rb | 6 ------ 3 files changed, 8 deletions(-) diff --git a/.rubocop_local.yml b/.rubocop_local.yml index 679479c8e3c..9cdd8a6fc8e 100644 --- a/.rubocop_local.yml +++ b/.rubocop_local.yml @@ -10,7 +10,6 @@ Style/GlobalVars: - $container_log - $journald_log - $log - - $miq_ae_logger - $policy_log - $rails_log - $remote_console_log diff --git a/config/settings.yml b/config/settings.yml index 73ca14a201c..b1ec244654c 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -854,7 +854,6 @@ :ping_depot_timeout: 20 :level: info :level_rails: info - :level_automation: info :level_fog: info :level_policy: info :level_remote_console: info diff --git a/lib/vmdb/loggers.rb b/lib/vmdb/loggers.rb index 536ef9fe16b..58a4136e2b7 100644 --- a/lib/vmdb/loggers.rb +++ b/lib/vmdb/loggers.rb @@ -26,9 +26,6 @@ def self.apply_config(config) apply_config_value(config, $policy_log, :level_policy) apply_config_value(config, $remote_console_log, :level_remote_console) - # TODO: Move this into the manageiq-automation_engine plugin - apply_config_value(config, $miq_ae_logger, :level_automation) - Vmdb::Plugins.each { |p| p.try(:apply_logger_config, config) } end @@ -49,9 +46,6 @@ def self.create_logger(log_file_name, logger_class = VMDBLogger) $policy_log = create_logger("policy.log") $remote_console_log = create_logger("remote_console.log") - # TODO: Move this into the manageiq-automation_engine plugin - $miq_ae_logger = create_logger("automation.log") - configure_external_loggers end