Skip to content

Commit

Permalink
Add Redfish provider logger
Browse files Browse the repository at this point in the history
In order to keep the main log clean of Redfish provider messages, we
added new log file and associated logger that can be used by the
Redfish provider.
  • Loading branch information
Tadej Borovšak committed May 28, 2018
1 parent d868f6f commit 6e9f73e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rubocop_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ GlobalVars:
- $vim_log
- $websocket_log
- $nuage_log
- $redfish_log
Rails/Exit:
Exclude:
- lib/workers/bin/*
Expand Down
2 changes: 2 additions & 0 deletions lib/vmdb/loggers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def self.apply_config(config)
apply_config_value(config, $lenovo_log, :level_lenovo)
apply_config_value(config, $nuage_log, :level_nuage)
apply_config_value(config, $policy_log, :level_policy)
apply_config_value(config, $redfish_log, :level_redfish)
apply_config_value(config, $rhevm_log, :level_rhevm)
apply_config_value(config, $scvmm_log, :level_scvmm)
apply_config_value(config, $vcloud_log, :level_vcloud)
Expand All @@ -121,6 +122,7 @@ def self.create_loggers
$lenovo_log = create_multicast_logger(path_dir.join("lenovo.log"))
$nuage_log = create_multicast_logger(path_dir.join("nuage.log"))
$policy_log = create_multicast_logger(path_dir.join("policy.log"))
$redfish_log = create_multicast_logger(path_dir.join("redfish.log"))
$rhevm_log = create_multicast_logger(path_dir.join("rhevm.log"))
$scvmm_log = create_multicast_logger(path_dir.join("scvmm.log"))
$vcloud_log = create_multicast_logger(path_dir.join("vcloud.log"))
Expand Down

0 comments on commit 6e9f73e

Please sign in to comment.