Skip to content

Commit b6681f5

Browse files
committed
feat: log list of queries found
1 parent 6b5dd48 commit b6681f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ package main
33
import (
44
"context"
55
"encoding/json"
6+
"maps"
67
"net/http"
78
"os"
89
"os/signal"
10+
"slices"
911
"time"
1012

1113
prometheusApi "github.com/prometheus/client_golang/api"
@@ -26,6 +28,7 @@ func main() {
2628

2729
router := NewRouter(promController)
2830

31+
log.Ctx(ctx).Info().Strs("queries", slices.Collect(maps.Keys(queries))).Msg("Found queries")
2932
log.Ctx(ctx).Info().Msgf("Starting server on http://localhost:%d/query/{query}", config.Port)
3033
err := Serve(ctx, config.Port, router)
3134
log.Err(err).Msg("Terminated")

0 commit comments

Comments
 (0)