Skip to content

Commit

Permalink
feat: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Sep 16, 2024
1 parent 1c9010a commit 3156f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3156f71

Please sign in to comment.