protocol icon indicating copy to clipboard operation
protocol copied to clipboard

improve(logger): ignore invalid slack webhook URLs

Open bmzig opened this issue 8 months ago • 0 comments

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.

bmzig avatar Apr 07 '25 20:04 bmzig