From 4667fdbc15fca98cfea517c9740bc6f2fafb988d Mon Sep 17 00:00:00 2001 From: TwiN Date: Sat, 2 Aug 2025 17:31:53 -0400 Subject: [PATCH] chore: Use the right logging library --- config/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 5989a2b4..f7056a72 100644 --- a/config/config.go +++ b/config/config.go @@ -22,7 +22,6 @@ import ( "github.com/TwiN/gatus/v5/security" "github.com/TwiN/gatus/v5/storage" "github.com/TwiN/logr" - "github.com/gofiber/fiber/v2/log" "gopkg.in/yaml.v3" ) @@ -444,7 +443,7 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*endpoi // Validate the endpoint alert's overrides, if applicable if len(endpointAlert.ProviderOverride) > 0 { if err = alertProvider.ValidateOverrides(ep.Group, endpointAlert); err != nil { - log.Warnf("[config.validateAlertingConfig] endpoint with key=%s has invalid overrides for provider=%s: %s", ep.Key(), alertType, err.Error()) + logr.Warnf("[config.validateAlertingConfig] endpoint with key=%s has invalid overrides for provider=%s: %s", ep.Key(), alertType, err.Error()) } } } @@ -458,7 +457,7 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*endpoi // Validate the endpoint alert's overrides, if applicable if len(endpointAlert.ProviderOverride) > 0 { if err = alertProvider.ValidateOverrides(ee.Group, endpointAlert); err != nil { - log.Warnf("[config.validateAlertingConfig] endpoint with key=%s has invalid overrides for provider=%s: %s", ee.Key(), alertType, err.Error()) + logr.Warnf("[config.validateAlertingConfig] endpoint with key=%s has invalid overrides for provider=%s: %s", ee.Key(), alertType, err.Error()) } } }