Skip to content

Commit

Permalink
chore: remove some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jul 24, 2018
1 parent 46529b3 commit c946600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/InteractorClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,6 @@ module.exports = class InteractorDaemonizer {
return cb(msg)
}

if (msg.km_data && msg.km_data.active === true && !process.env.PM2_SILENT) {
console.log('%s %s', chalk.cyan('[PM2.IO]'), msg.km_data.new ? 'Agent created' : 'Agent updated')
}
return cb(null, msg, child)
})
}
Expand Down Expand Up @@ -448,7 +445,7 @@ module.exports = class InteractorDaemonizer {
if (err || !conf) return cb(err || new Error('Cant retrieve configuration'))

if (!process.env.PM2_SILENT) {
console.log(chalk.cyan('[PM2.IO]') + ' Using: Public key: %s | Private key: %s | Machine name: %s', conf.public_key, conf.secret_key, conf.machine_name)
console.log(chalk.cyan('[PM2 I/O]') + ' Using: Public key: %s | Private key: %s | Machine name: %s', conf.public_key, conf.secret_key, conf.machine_name)
}
return this.launchOrAttach(cst, conf, cb)
})
Expand Down
4 changes: 1 addition & 3 deletions src/InteractorDaemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,11 @@ const InteractorDaemon = module.exports = class InteractorDaemon {
* @param {Function} cb invoked with <Error, Boolean>
*/
_verifyEndpoint (cb) {
log('Verifying endpoints')
if (typeof cb !== 'function') cb = function () {}

this._pingRoot((err, data) => {
if (err) {
log('Got an a error on ping root')
log('Got an a error on ping root', err)
return cb(err)
}

Expand All @@ -258,7 +257,6 @@ const InteractorDaemon = module.exports = class InteractorDaemon {
return cb(null, data)
}

log('Connect transport with endpoints')
this.DAEMON_ACTIVE = true
this.transport.connect(data.endpoints, cb)
})
Expand Down

0 comments on commit c946600

Please sign in to comment.