Skip to content

Commit

Permalink
log url
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Jan 17, 2024
1 parent e2ac3ed commit 8a8f46b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/graphql-fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { GraphQLClient } from "graphql-request"
import { NEXT_PUBLIC_HASURA_URL } from "./env"
import logger from "./logger"

export interface GraphQLFetcherParams {
query: string
Expand Down Expand Up @@ -31,7 +32,9 @@ const graphQLFetcher = ({
}
}

const client = new GraphQLClient(url || NEXT_PUBLIC_HASURA_URL, options)
const using_url = url || NEXT_PUBLIC_HASURA_URL
const client = new GraphQLClient(using_url, options)
logger.info({ using_url })

return client.request(query, parameters)
}
Expand Down

0 comments on commit 8a8f46b

Please sign in to comment.