Skip to content

Commit

Permalink
Add an ansible_tower_log to vmdb loggers
Browse files Browse the repository at this point in the history
The ansible tower client is using the base $log logger, add an
ansible_tower_log logger for it to use.
  • Loading branch information
agrare committed Jun 25, 2018
1 parent adb2759 commit f16e67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vmdb/loggers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def self.init
def self.apply_config(config)
apply_config_value(config, $log, :level)
apply_config_value(config, $rails_log, :level_rails)
apply_config_value(config, $ansible_tower_log, :level_ansible_tower)
apply_config_value(config, $api_log, :level_api)
apply_config_value(config, $miq_ae_logger, :level_automation)
apply_config_value(config, $aws_log, :level_aws)
Expand Down Expand Up @@ -112,6 +113,7 @@ def self.create_loggers
$log = create_multicast_logger(path_dir.join("evm.log"))
$rails_log = create_multicast_logger(path_dir.join("#{Rails.env}.log"))
$api_log = create_multicast_logger(path_dir.join("api.log"))
$ansible_tower_log = create_multicast_logger(path_dir.join("ansible_tower.log"))
$miq_ae_logger = create_multicast_logger(path_dir.join("automation.log"))
$aws_log = create_multicast_logger(path_dir.join("aws.log"))
$azure_log = create_multicast_logger(path_dir.join("azure.log"), AzureLogger)
Expand Down

0 comments on commit f16e67b

Please sign in to comment.