mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-02-24 16:03:56 +08:00
log es setup status
This commit is contained in:
parent
a1e17d9d10
commit
a416228eeb
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,9 @@ if (!processCount || processCount <= 1) {
|
|||
// single process mode, do not fork anything
|
||||
|
||||
initElasticSearch()
|
||||
.then(() => {
|
||||
log.info('App', `ElasticSearch setup checked`);
|
||||
})
|
||||
.catch(err => {
|
||||
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
||||
})
|
||||
|
@ -95,6 +98,9 @@ if (!processCount || processCount <= 1) {
|
|||
|
||||
// Fork workers.
|
||||
initElasticSearch()
|
||||
.then(() => {
|
||||
log.info('App', `ElasticSearch setup checked`);
|
||||
})
|
||||
.catch(err => {
|
||||
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue