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