Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
fix: log options on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Feb 18, 2019
1 parent a43c3ac commit 56ec040
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,21 @@ process.on('warning', (e: any) => {
})

logger.info('------------------------------------------------------------------')
logger.info('Starting MOS Gateway')
if (disableWatchdog) logger.info('Watchdog is disabled!')
logger.info('-----------------------------------')
logger.info('Statup options:')

logger.info(`host: "${host}"`)
logger.info(`port: ${port}`)
logger.info(`log: "${logPath}"`)
logger.info(`id: "${deviceId}"`)
logger.info(`token: "${deviceToken}"`)
logger.info(`debug: ${debug}`)
logger.info(`certificates: [${certs.join(',')}]`)
logger.info(`disableWatchdog: ${disableWatchdog}`)
logger.info(`unsafeSSL: ${unsafeSSL}`)

logger.info('-----------------------------------')

// App config -----------------------------------------
let config: Config = {
process: {
Expand Down

0 comments on commit 56ec040

Please sign in to comment.