Skip to content

Commit

Permalink
fix: debugging..
Browse files Browse the repository at this point in the history
  • Loading branch information
jcy0308 committed Aug 30, 2024
1 parent d3ab769 commit fcd4a3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/kafka/kafka.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
4 changes: 3 additions & 1 deletion src/puppeteer/puppeteer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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() {
Expand Down

0 comments on commit fcd4a3c

Please sign in to comment.