Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move $miq_ae_logger initialization and configuration into plugin #20968

Merged
merged 1 commit into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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