From 3156f717e499d822074aca621220a14a802d7a49 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Mon, 16 Sep 2024 14:59:34 -0400 Subject: [PATCH] feat: add logging --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ba5a95c..f4c419b 100644 --- a/main.go +++ b/main.go @@ -143,7 +143,7 @@ func main() { } // if we use metrics with database, we run some background routines - if !serviceConfig.MetricDatabaseEnabled { + if serviceConfig.MetricDatabaseEnabled { // configure and run background routines // metric partitioning routine go func() { @@ -171,6 +171,8 @@ func main() { serviceLogger.Error().Msg(fmt.Sprintf("metric pruning routine encountered error %s", routineErr)) } }() + } else { + serviceLogger.Info().Msg("skipping starting metric partitioning, compaction, and pruning routines since metric database is enabled") } // run the proxy service