clean up console
Summary: The console was pretty spammy. This fixes some issues that were logged and changes many log statements to `console.debug` which are not shown by default. Reviewed By: passy Differential Revision: D9303011 fbshipit-source-id: 1102f4f8814152a45f155cb43488a515c2d4eee4
This commit is contained in:
committed by
Facebook Github Bot
parent
eb316be4e4
commit
6f2a7dcb05
@@ -138,7 +138,7 @@ export default class Client extends EventEmitter {
|
||||
error?: Object,
|
||||
|} = rawData;
|
||||
|
||||
console.log(data, 'message:receive');
|
||||
console.debug(data, 'message:receive');
|
||||
|
||||
const {id, method} = data;
|
||||
|
||||
@@ -240,7 +240,7 @@ export default class Client extends EventEmitter {
|
||||
params,
|
||||
};
|
||||
|
||||
console.log(data, 'message:call');
|
||||
console.debug(data, 'message:call');
|
||||
this.startTimingRequestResponse({method, id, params});
|
||||
this.connection.fireAndForget({data: JSON.stringify(data)});
|
||||
});
|
||||
@@ -273,7 +273,7 @@ export default class Client extends EventEmitter {
|
||||
method,
|
||||
params,
|
||||
};
|
||||
console.log(data, 'message:send');
|
||||
console.debug(data, 'message:send');
|
||||
this.connection.fireAndForget({data: JSON.stringify(data)});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user