Added missing condition (!this.quiet)

This commit is contained in:
Jesús Ángel 2018-12-13 13:26:46 +01:00
parent cb12da21d9
commit 06584b79fd

View File

@ -308,7 +308,7 @@ export class Monitoring {
`Created index pattern: ${this.index_pattern}`, `Created index pattern: ${this.index_pattern}`,
'info' 'info'
); );
this.server.log( !this.quiet && this.server.log(
[blueWazuh, 'monitoring', 'info'], [blueWazuh, 'monitoring', 'info'],
`Created index pattern: ${this.index_pattern}` `Created index pattern: ${this.index_pattern}`
); );
@ -465,7 +465,7 @@ export class Monitoring {
this.todayIndex this.todayIndex
} exists due to ${error.message || error}` } exists due to ${error.message || error}`
); );
this.server.log( !this.quiet && this.server.log(
[blueWazuh, 'monitoring', 'error'], [blueWazuh, 'monitoring', 'error'],
`Could not check if the index ${ `Could not check if the index ${
this.todayIndex this.todayIndex
@ -485,7 +485,7 @@ export class Monitoring {
'Successfully deleted old wazuh-monitoring pattern.', 'Successfully deleted old wazuh-monitoring pattern.',
'info' 'info'
); );
this.server.log( !this.quiet && this.server.log(
[blueWazuh, 'monitoring', 'info'], [blueWazuh, 'monitoring', 'info'],
'Successfully deleted old wazuh-monitoring pattern.' 'Successfully deleted old wazuh-monitoring pattern.'
); );