Skip to content

Commit

Permalink
fix: removed console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Domitnator committed Nov 15, 2021
1 parent c8245d7 commit 8e34c0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { resolve } from 'path'
import { Module, Plugin } from '@nuxt/types'
import { ContentItem, DeliveryClient, IDeliveryClientConfig, MultipleItemQuery } from '@kentico/kontent-delivery'
import { IDeliveryClientConfig } from '@kentico/kontent-delivery'
import defu from 'defu'
import { logger } from './utilties/logger'
import chalk from 'chalk'
Expand All @@ -21,8 +21,6 @@ export interface ModuleOptions extends RequireOne<IDeliveryClientConfig, 'projec
const deliveryClientModule: Module<IDeliveryClientConfig> = function (moduleOptions) {
const options = defu<ModuleOptions, IDeliveryClientConfig>(this.options.kenticokontent, moduleOptions)

console.log("Module is initializing...")

if (!options.projectId) {
logger.error(`You need to provide ${chalk.yellow('projectId')} to set up Kentico Kontent. See 👉 https://github.com/Domitnator/kentico-kontent-nuxt-module for more info.`)
return
Expand Down

0 comments on commit 8e34c0f

Please sign in to comment.