Skip to content

Commit

Permalink
Merge pull request #287 from jiho-kr/feauter/object-logging
Browse files Browse the repository at this point in the history
feat: should be able to logging even when the type of value is object
  • Loading branch information
jiho-kr authored Jan 15, 2024
2 parents b233e33 + 3ba0543 commit 22c1b15
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 22c1b15

Please sign in to comment.