Skip to content

Commit

Permalink
feat: object logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jiho-kr committed Jan 15, 2024
1 parent b233e33 commit 3ba0543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/abstract/abstract-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export abstract class AbstractConfigService<K = Record<string, unknown>> impleme
showAll() {
const obj = cloneDeep(this);
for (const [key, value] of Object.entries(obj)) {
Logger.log(`[${this.constructor.name}] ${key}: ${value}`);
Logger.log(`[${this.constructor.name}] ${key}: ${typeof value === 'object' ? JSON.stringify(value) : value}`);
}
}
}

0 comments on commit 3ba0543

Please sign in to comment.