Skip to content

Commit

Permalink
Merge pull request #90 from MasterOfCubesAU/fix/lobbies
Browse files Browse the repository at this point in the history
fixed linting
  • Loading branch information
sam1357 authored Jan 3, 2023
2 parents 6bdfa5b + 13e4a2e commit 5492bec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/utils/Logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ const transports = [
new winston.transports.DailyRotateFile({
frequency: '1d',
filename: 'logs/error.log',
datePattern: 'YYYY-MM-DD',
maxFiles: 7,
level: 'error',
format: winstonFileFormat,
}),
new winston.transports.DailyRotateFile({
frequency: '1d',
filename: 'logs/all.log',
datePattern: 'YYYY-MM-DD',
maxFiles: 7,
format: winstonFileFormat,
}),
Expand Down
12 changes: 6 additions & 6 deletions src/utils/MorganMiddleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const statusColour = (req: Request, res: Response) => {
status >= 500
? 31 // red
: status >= 400
? 33 // yellow
: status >= 300
? 36 // cyan
: status >= 200
? 32 // green
: 0; // no color
? 33 // yellow
: status >= 300
? 36 // cyan
: status >= 200
? 32 // green
: 0; // no color
return '\x1b[' + color + 'm' + status + '\x1b[0m';
};

0 comments on commit 5492bec

Please sign in to comment.