mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-21 20:59:04 +00:00
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:
parent
7b676bb9fd
commit
38b8109210
@ -11,6 +11,8 @@ const logger = require('./logger')
|
||||
const versions = require('./src/versions')
|
||||
const safe = express()
|
||||
|
||||
logger.log('Starting lolisafe\u2026')
|
||||
|
||||
process.on('uncaughtException', error => {
|
||||
logger.error(error, { prefix: 'Uncaught Exception: ' })
|
||||
})
|
||||
@ -291,7 +293,7 @@ safe.use('/api', api)
|
||||
}).on('SIGINT', () => {
|
||||
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) {
|
||||
logger.error(error)
|
||||
|
Loading…
Reference in New Issue
Block a user