Skip to content

Commit

Permalink
Added debug to test on dev (#49)
Browse files Browse the repository at this point in the history
* Added debug to test on dev

* Updated to add component name in debug

* Added extra debugging for severity labels for environment
  • Loading branch information
Sandhya1874 authored Dec 4, 2024
1 parent c837371 commit 1a74448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions github_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,16 @@ def process_repo(**component):
pass

# Update alerts_prod_slack_channel and alerts_non_prod_slack_channel
log.info(f'{c_name} Alerts severity labels: {alert_severity_label_envs}')
if 'preprod' in alert_severity_label_envs:
alert_severity_label = alert_severity_label_envs["preprod"]["alert_severity_label"]
channel = find_channel_by_severity_label(alert_severity_label)
log.info(f'{c_name} Alerts channel for preprod {alert_severity_label}: {channel}')
data.update({'alerts_nonprod_slack_channel': channel})
if 'prod' in alert_severity_label_envs:
alert_severity_label = alert_severity_label_envs["prod"]["alert_severity_label"]
channel = find_channel_by_severity_label(alert_severity_label)
log.info(f'{c_name} Alerts channel for prod {alert_severity_label}: {channel}')
data.update({'alerts_prod_slack_channel': channel})

environments = []
Expand Down

0 comments on commit 1a74448

Please sign in to comment.