Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Closes #400
Browse files Browse the repository at this point in the history
  • Loading branch information
behrad committed Jan 20, 2016
1 parent 48cba96 commit 08809ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ Server.prototype.publish = function publish(packet, client, callback) {
opts,
function() {
that.published(packet, client, function() {
logger.debug({ packet: packet }, "published packet");
if( packet.topic.indexOf( '$SYS' ) >= 0 ) {
logger.trace({ packet: packet }, "published packet");
} else {
logger.debug({ packet: packet }, "published packet");
}
that.emit("published", packet, client);
callback();
});
Expand Down

0 comments on commit 08809ab

Please sign in to comment.