mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
chore(utils): silence eslint in logs util
This commit is contained in:
committed by
Carlos García Ortiz
parent
58d74dc368
commit
9d4324dc24
@@ -65,6 +65,7 @@ export class Log {
|
||||
log(...args: any[]) {
|
||||
this.addMessage({ level: 'log', prefix: this.prefix }, ...args);
|
||||
if (this.enabled) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`%c${this.prefix}`, this.css, ...args);
|
||||
}
|
||||
}
|
||||
@@ -79,6 +80,7 @@ export class Log {
|
||||
info(...args: any[]) {
|
||||
this.addMessage({ level: 'info', prefix: this.prefix }, ...args);
|
||||
if (this.enabled) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.info(`%c${this.prefix}`, this.css, ...args);
|
||||
}
|
||||
}
|
||||
@@ -94,8 +96,10 @@ export class Log {
|
||||
this.addMessage({ level: 'debug', prefix: this.prefix }, ...args);
|
||||
if (this.enabled) {
|
||||
if (this.css) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`%c${this.prefix}`, this.css, ...args);
|
||||
} else {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(this.prefix, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user