mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix log (#5204)
This commit is contained in:
committed by
Denys Vuika
parent
98e9e638c1
commit
65c66528de
@@ -25,19 +25,19 @@ const infoColor = '\x1b[36m%s\x1b[0m',
|
||||
/* tslint:disable:no-console */
|
||||
export class Logger {
|
||||
static info(...messages): void {
|
||||
if (browser.params.config.log) {
|
||||
if (browser.params.config && browser.params.config.log) {
|
||||
console.log(infoColor, messages.join(''));
|
||||
}
|
||||
}
|
||||
|
||||
static log(...messages): void {
|
||||
if (browser.params.config.log) {
|
||||
if (browser.params.config && browser.params.config.log) {
|
||||
console.log(logColor, messages.join(''));
|
||||
}
|
||||
}
|
||||
|
||||
static warn(...messages): void {
|
||||
if (browser.params.config.log) {
|
||||
if (browser.params.config && browser.params.config.log) {
|
||||
console.log(warnColor, messages.join(''));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user