diff --git a/src/kafka/kafka.service.ts b/src/kafka/kafka.service.ts index f7b307a..84077dd 100644 --- a/src/kafka/kafka.service.ts +++ b/src/kafka/kafka.service.ts @@ -15,8 +15,8 @@ export class KafkaService implements OnModuleInit, OnModuleDestroy { private topic = process.env.TOPIC; constructor( - private readonly puppeteerService: PuppeteerService, - private readonly minioService: MinioService, + // private readonly puppeteerService: PuppeteerService, + // private readonly minioService: MinioService, ) { // this.kafka = new Kafka({ // clientId: `${process.env.CONSUMER_GROUP}+${process.pid}`, diff --git a/src/puppeteer/puppeteer.service.ts b/src/puppeteer/puppeteer.service.ts index 10d9b82..257720e 100644 --- a/src/puppeteer/puppeteer.service.ts +++ b/src/puppeteer/puppeteer.service.ts @@ -7,6 +7,7 @@ export class PuppeteerService implements OnModuleInit, OnModuleDestroy { private page: puppeteer.Page; async onModuleInit() { + console.log('module initiated'); this.browser = await puppeteer.launch({ headless: true, executablePath: '/usr/bin/chromium-browser', @@ -17,8 +18,9 @@ export class PuppeteerService implements OnModuleInit, OnModuleDestroy { '--enable-local-file-accesses', ], }); + console.log('browser launched'); this.page = await this.browser.newPage(); - console.log('browser initiated'); + console.log('puppeteer initiated'); } async onModuleDestroy() {