Skip to content

Commit

Permalink
refactor(globals): console.log to console.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivanovvv committed Jan 9, 2025
1 parent 7d43053 commit a9665a5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions globals/data/src/getters/apollo-error-link.getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ export const getApolloErrorLink = (): ApolloLink => {

if (graphQLErrors) {
graphQLErrors.forEach(({ message, locations, path, extensions }) => {
console.log(`[GraphQL error]: Message: ${message}`)
console.log(`Location: ${locations}`)
console.log(`Path: ${path}`)
console.log(`Extenstions: ${extensions}`)
console.debug(`[GraphQL error]: Message: ${message}`)
console.debug(`Location: ${locations}`)
console.debug(`Path: ${path}`)
console.debug(`Extenstions: ${extensions}`)
})
}
if (cause) {
const { message, extensions, locations, path } = cause
console.log(`Cause: ${message}`)
console.log(`Extenstions: ${extensions}`)
console.log(`Locatoins: ${locations}`)
console.log(`Path: ${path}`)
console.debug(`Cause: ${message}`)
console.debug(`Extenstions: ${extensions}`)
console.debug(`Locatoins: ${locations}`)
console.debug(`Path: ${path}`)
}
})

Expand Down

0 comments on commit a9665a5

Please sign in to comment.