Skip to content

Commit

Permalink
Merge pull request #20968 from Fryguy/pluggable_loggers4
Browse files Browse the repository at this point in the history
Move $miq_ae_logger initialization and configuration into plugin
  • Loading branch information
chessbyte authored Jan 19, 2021
2 parents cb488b5 + 7deae1b commit 1b42ce7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion .rubocop_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Style/GlobalVars:
- $container_log
- $journald_log
- $log
- $miq_ae_logger
- $policy_log
- $rails_log
- $remote_console_log
Expand Down
1 change: 0 additions & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions lib/vmdb/loggers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 1b42ce7

Please sign in to comment.