mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-02-25 00:13:33 +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
|
// single process mode, do not fork anything
|
||||||
|
|
||||||
initElasticSearch()
|
initElasticSearch()
|
||||||
|
.then(() => {
|
||||||
|
log.info('App', `ElasticSearch setup checked`);
|
||||||
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
||||||
})
|
})
|
||||||
|
@ -95,6 +98,9 @@ if (!processCount || processCount <= 1) {
|
||||||
|
|
||||||
// Fork workers.
|
// Fork workers.
|
||||||
initElasticSearch()
|
initElasticSearch()
|
||||||
|
.then(() => {
|
||||||
|
log.info('App', `ElasticSearch setup checked`);
|
||||||
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
log.error('App', `ElasticSearch setup failed: ${err.message}${err.meta?.statusCode ? ` (${err.meta?.statusCode})` : ''}`);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue