Skip to content

Commit

Permalink
separate monitor logs from zmq logs
Browse files Browse the repository at this point in the history
  • Loading branch information
esatterwhite committed Jun 5, 2017
1 parent f4108fa commit 0bf8c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/zmq.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'
const Zmq = require('zmq')
const debug = require('debug')('skyring:transports:zmq')
const monitor = require('debug')('skyring:transports:zmq:monitor')
const connections = new Map()
const METHODS = new Set(['push', 'pub'])
const ZMQ_DEBUG = !!process.env.ZMQ_DEBUG
Expand Down Expand Up @@ -68,7 +69,7 @@ function startMonitor(socket) {
for (const evt of MONITOR_EVENTS) {
debug(`adding monitor event ${evt} for socket`)
socket.on(evt, (fd, addr) => {
debug(`socket ${evt}: ${addr}`)
monitor(`socket ${evt}: ${addr}`)
})
}
}
Expand Down

0 comments on commit 0bf8c3a

Please sign in to comment.