Permalink
Browse files

Added logging for hub methods called from the client

  • Loading branch information...
abnanda1 committed Jan 4, 2014
1 parent e6b3fbb commit 6e58e344b3f7a5b2ce104f13a85d64c363eb9769
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Microsoft.AspNet.SignalR.Client.JS/jquery.signalR.hubs.js
@@ -178,9 +178,11 @@
error = signalR._.error(result.Error, source);
error.data = result.ErrorData;
+ connection.log(that.hubName + "." + methodName + " failed to execute. Error: " + error.message);
d.rejectWith(that, [error]);
} else {
// Server invocation succeeded, resolve the deferred
+ connection.log("Invoked " + that.hubName + "." + methodName);
d.resolveWith(that, [result.Result]);
}
};

1 comment on commit 6e58e34

@davidfowl

This comment has been minimized.

Show comment Hide comment
@davidfowl

davidfowl Jan 4, 2014

Owner

I just realized we aren't logging the just before the outgoing invocation. We need to add that.

Owner

davidfowl commented on 6e58e34 Jan 4, 2014

I just realized we aren't logging the just before the outgoing invocation. We need to add that.

Please sign in to comment.