Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Nov 12, 2024
1 parent d9182f2 commit 41ed10e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Logger {
format: format.combine(
format.timestamp(),
format.printf(({ timestamp, level, message, service, asset }) => {
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
return `${timestamp};${level};${service};${asset};${message}`;
}),
),
Expand All @@ -65,8 +66,9 @@ class Logger {
format.colorize(),
format.timestamp(),
format.printf(({ timestamp, level, message, service, asset }) => {
const service_text = service ? ` [${service}]` : "";
const asset_text = asset ? ` (${asset})` : "";
const service_text = service ? ` [${service}]` : ""; // eslint-disable-line @typescript-eslint/restrict-template-expressions
const asset_text = asset ? ` (${asset})` : ""; // eslint-disable-line @typescript-eslint/restrict-template-expressions
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
return `[${timestamp}] ${level}${service_text}${asset_text} ${message}`;
}),
),
Expand Down

0 comments on commit 41ed10e

Please sign in to comment.