Skip to content

Commit 4be15c7

Browse files
committed
chore(core): remove console logs and delete unused worker class
- Removed console log statements from various files to clean up the codebase. - Deleted the ScheduleWorker class as it was no longer needed.
1 parent 5377122 commit 4be15c7

File tree

7 files changed

+0
-30
lines changed

7 files changed

+0
-30
lines changed

packages/core/lib/console/inquirer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export class Inquirer {
1111
const answers = await prompt([
1212
{ name: 'question', message: question, type: 'input' },
1313
]);
14-
console.log(answers);
1514
return answers['question'];
1615
}
1716

packages/core/lib/mailer/providers/mailgun.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ export class MailgunProvider implements BaseProvider {
4141
})),
4242
});
4343

44-
console.log(report);
45-
4644
return;
4745
}
4846

packages/core/lib/rest/http-server/route-explorer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ export class RouteExplorer {
9999

100100
if (!pathMethod) return;
101101

102-
console.log(instance.constructor);
103-
console.log(controllerKey, methodPath, pathMethod, key);
104-
105102
const fullHttpPath = joinRoute(controllerKey, methodPath);
106103
return { method: pathMethod, path: fullHttpPath };
107104
}

packages/core/lib/scheduler/metadata.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export class SchedulerRegistry {
1818

1919
options?.name && schedule.name(options.name);
2020
schedule.cron(cronExpression);
21-
console.log(this.schedules);
2221
}
2322

2423
static register(name: string, schedule: Schedule): void {

packages/core/lib/scheduler/worker.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/core/lib/storage/drivers/s3Storage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ export class S3Storage implements StorageDriver {
2929
}
3030

3131
getStream(filePath: string): ReadStream {
32-
console.log('file path ===> ', filePath);
3332
throw new Error('Method not implemented.');
3433
}
3534

3635
listDir(path: string): Promise<Record<string, any>> {
37-
console.log(path);
3836
throw new Error('Method not implemented.');
3937
}
4038

@@ -293,7 +291,6 @@ export class S3Storage implements StorageDriver {
293291
params?: Record<string, any>,
294292
): Promise<string> {
295293
this.initialiseModules();
296-
console.log(path, ttlInMins, params);
297294
throw new Error('Method not implemented.');
298295
}
299296

packages/core/lib/utils/object.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ export class Obj {
149149

150150
static hash(obj: Record<string, any>): string {
151151
const sortedObj = this.sort(obj);
152-
console.log(sortedObj);
153152
const jsonString = JSON.stringify(sortedObj);
154-
console.log(jsonString);
155153
return '';
156154
}
157155

0 commit comments

Comments
 (0)