Skip to content

Commit

Permalink
πŸš‘ fix logger callers function
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed May 26, 2024
1 parent cf46123 commit 865e024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ export class Logger {
this.callsystem = callsystem;
}
callers({ module = "default" }) {
const moduleLogLevel = logLevels[module] || logLevels.default;
const moduleCaller = moduleLogLevel?.caller || chalk.bold.white;
const moduleName = moduleLogLevel?.name || module || "Legacy";

return {
moduleCaller,
moduleName,
moduleName: moduleName.toUpperCase(),
};
}

Expand Down

0 comments on commit 865e024

Please sign in to comment.