mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Moved server.log statement to the right place
This commit is contained in:
parent
3957fdc150
commit
eb4d0b85a7
@ -114,6 +114,7 @@ module.exports = (server, options) => {
|
||||
});
|
||||
}
|
||||
} catch(error){
|
||||
server.log([blueWazuh, 'wazuh-api', 'error'], error.message || error);
|
||||
if(error.code === 'ECONNREFUSED'){
|
||||
wapi_config.password = '****'
|
||||
wapi_config.apiIsDown = true;
|
||||
@ -124,7 +125,6 @@ module.exports = (server, options) => {
|
||||
error : 8,
|
||||
message : error.message || error
|
||||
});
|
||||
server.log([blueWazuh, 'wazuh-api', 'error'], error.message || error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user