This repository was archived by the owner on Feb 11, 2020. It is now read-only.
Commit 49dad8b 1 parent 8d134ab commit 49dad8b Copy full SHA for 49dad8b
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var rewriteTopic = function(topic) {
17
17
function Client ( conn , server ) {
18
18
this . connection = conn ;
19
19
this . server = server ;
20
- this . logger = server . logger . child ( { client : this } , true ) ;
20
+ this . logger = server . logger ;
21
21
this . subscriptions = { } ;
22
22
23
23
this . nextId = 0 ;
@@ -109,7 +109,7 @@ Client.prototype.setUpTimer = function() {
109
109
var timeout = this . keepalive * 1000 * 5 / 4 ;
110
110
var that = this ;
111
111
112
- this . logger . info ( { timeout : timeout } , "setting keepalive timeout" ) ;
112
+ this . logger . debug ( { timeout : timeout } , "setting keepalive timeout" ) ;
113
113
114
114
this . timer = setTimeout ( function ( ) {
115
115
that . logger . info ( "keepalive timeout" ) ;
@@ -223,9 +223,10 @@ Client.prototype.unsubAndClose = function(cb) {
223
223
* @api private
224
224
*/
225
225
Client . prototype . handleConnect = function ( packet ) {
226
- var that = this , logger = this . logger , client = this . connection ;
226
+ var that = this , logger , client = this . connection ;
227
227
228
228
this . id = packet . clientId ;
229
+ this . logger = logger = that . logger . child ( { client : this } ) ;
229
230
230
231
if ( this . id . length > 23 ) {
231
232
client . connack ( {
You can’t perform that action at this time.
0 commit comments