removed byte array for debug statements for ufsWrite

pull/1820/head
Julian Popescu 10 years ago
parent ed07595646
commit 3f6f27d8d0
  1. 3
      packages/rocketchat-lib/server/lib/debug.js

@ -16,7 +16,8 @@ Meteor.startup(function() {
var wrapMethods = function(name, originalHandler, methodsMap) {
methodsMap[name] = function() {
if (RocketChat.debugLevel === 'debug') {
console.log('[methods]'.green, name, '-> userId:', Meteor.userId(), ', arguments: ', arguments);
var args = name === "ufsWrite" ? Array.prototype.slice.call(arguments, 1) : arguments;
console.log('[methods]'.green, name, '-> userId:', Meteor.userId(), ', arguments: ', args);
}
return originalHandler.apply(this, arguments);

Loading…
Cancel
Save