mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 05:43:07 +02:00
Supress logs during test
This commit is contained in:
parent
93541f83c8
commit
f35688bab8
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ export default class Logger {
|
|||
|
||||
private log(level: string, message: string, important = false, subDomains: string[] = []): void {
|
||||
if (program.quiet) return;
|
||||
if (process.env.NODE_ENV === 'test') return;
|
||||
const domain = this.color ? chalk.keyword(this.color)(this.domain) : chalk.white(this.domain);
|
||||
const domains = [domain].concat(subDomains);
|
||||
if (this.parentLogger) {
|
||||
|
|
Loading…
Reference in a new issue