mirror of
https://github.com/nioc/xmpp-bot.git
synced 2024-12-04 22:23:36 +01:00
Output application version at startup
This commit is contained in:
parent
9c5dd424bb
commit
7d0033d0f2
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ let config = require('./config')(logger)
|
||||||
// update logger with configuration
|
// update logger with configuration
|
||||||
logger.updateConfig(config.logger)
|
logger.updateConfig(config.logger)
|
||||||
|
|
||||||
|
// output application version
|
||||||
|
const { name, version } = require('./../package.json')
|
||||||
|
logger.info(`Start ${name} service - version ${version}`)
|
||||||
|
|
||||||
// load xmpp module
|
// load xmpp module
|
||||||
const xmpp = require('./xmpp')(logger, config)
|
const xmpp = require('./xmpp')(logger, config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue