Skip to content

improve(logger): ignore invalid slack webhook URLs #4815

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmzig
Copy link

@bmzig bmzig commented Apr 7, 2025

Motivation

An end user may want to instantiate an UMA logger with a slack transport but only send slack messages for specific notification paths. This is not currently possible since we will unconditionally post a text payload to either the config's escalation path webhook URL or the default webhook URL.

Summary

This PR now allows invalid URLs to be defined in SLACK_CONFIG, and, if an invalid URL is selected as the webhookUrl, log will exit early.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant