Skip to content

Commit

Permalink
fix: Log GQL endpoint correctly on node start (#3037)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #3036

## Description

Logs the GQL endpoint correctly on node start.
  • Loading branch information
AndrewSisley authored Sep 19, 2024
1 parent 09b49c6 commit 926c334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (n *Node) Start(ctx context.Context) error {
}
log.InfoContext(ctx,
fmt.Sprintf("Providing HTTP API at %s PlaygroundEnabled=%t", n.Server.Address(), http.PlaygroundEnabled))
log.InfoContext(ctx, fmt.Sprintf("Providing GraphQL endpoint at %s/v0/graphql", n.Server.Address()))
log.InfoContext(ctx, fmt.Sprintf("Providing GraphQL endpoint at %s/api/v0/graphql", n.Server.Address()))
go func() {
if err := n.Server.Serve(); err != nil && !errors.Is(err, gohttp.ErrServerClosed) {
log.ErrorContextE(ctx, "HTTP server stopped", err)
Expand Down

0 comments on commit 926c334

Please sign in to comment.