Skip to content

Commit

Permalink
feat: log list of queries found
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 14, 2024
1 parent 6b5dd48 commit b6681f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package main
import (
"context"
"encoding/json"
"maps"
"net/http"
"os"
"os/signal"
"slices"
"time"

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

router := NewRouter(promController)

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

0 comments on commit b6681f5

Please sign in to comment.