Added starting message to lolisafe.js

Most of the times, connecting to ClamAV takes a bit too long and causes
misunderstanding due to a long period of silence
Generally with PM2 logs, due to the lack of indicator
of a successful restart
This commit is contained in:
Bobby Wibowo 2020-05-09 14:54:09 +07:00
parent 7b676bb9fd
commit 38b8109210
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -11,6 +11,8 @@ const logger = require('./logger')
const versions = require('./src/versions') const versions = require('./src/versions')
const safe = express() const safe = express()
logger.log('Starting lolisafe\u2026')
process.on('uncaughtException', error => { process.on('uncaughtException', error => {
logger.error(error, { prefix: 'Uncaught Exception: ' }) logger.error(error, { prefix: 'Uncaught Exception: ' })
}) })
@ -291,7 +293,7 @@ safe.use('/api', api)
}).on('SIGINT', () => { }).on('SIGINT', () => {
process.exit(0) process.exit(0)
}) })
logger.log('Development mode (disabled nunjucks caching & enabled readline interface)') logger.log('DEVELOPMENT MODE: Disabled Nunjucks caching & enabled readline interface')
} }
} catch (error) { } catch (error) {
logger.error(error) logger.error(error)