Skip to content

Commit

Permalink
cleanup debug console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Apr 27, 2018
1 parent e42d345 commit 67e3826
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/gatsby-source-contentful/src/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ module.exports = async ({ spaceId, accessToken, host, syncToken, environment })
let defaultLocale = `en-US`
try {
console.log(`Fetching default locale`)
console.log(client)
locales = await client.getLocales().then(response => response.items)
defaultLocale = _.find(locales, { default: true }).code
console.log(`default local is : ${defaultLocale}`)
} catch (e) {
console.log(e)
console.log(
`Accessing your Contentful space failed. Perhaps you're offline or the spaceId/accessToken is incorrect.`
)
Expand Down

0 comments on commit 67e3826

Please sign in to comment.