refactor: fix types
This commit is contained in:
parent
33c4e57994
commit
76faec2115
4 changed files with 5 additions and 6 deletions
|
|
@ -45,7 +45,7 @@ export default class Logger {
|
|||
}
|
||||
|
||||
const time = dateFormat(new Date(), 'HH:mm:ss');
|
||||
const worker = cluster.isPrimary ? '*' : cluster.worker.id;
|
||||
const worker = cluster.isPrimary ? '*' : cluster.worker!.id;
|
||||
const l =
|
||||
level === 'error' ? important ? chalk.bgRed.white('ERR ') : chalk.red('ERR ') :
|
||||
level === 'warning' ? chalk.yellow('WARN') :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue