Contentful logo

Contentful Community

Printing fetched entries on the console

I have the following problem. I tried to fetch some data from contentful with Content Delivery API . All works perfect. But there are something disturbing me, when I build my website locally on my PC, all fetched entries will be printed on the console as JSON. I would like to know, how can I set up my client , that entries will not be printed? ( I use JavaScript):

Try passing in your own logHandler during initialization of the SDK, the default prints the content: