Permalink
Browse files

Adding modules to kwargs and rearranged for a proper checksum accordi…

  • Loading branch information...
1 parent 1df756b commit 8330f01a641883c195aa15bfaf2726cad7e5bb7a @mattrobenolt mattrobenolt committed Mar 18, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/client.js
View
@@ -32,19 +32,20 @@ _.process = function process(kwargs) {
var event_id = uuid().replace(/-/g, ''),
checksum;
- kwargs['event_id'] = event_id;
- kwargs['timestamp'] = new Date().toISOString().split('.')[0];
- kwargs['project'] = this.dsn.project_id;
+ kwargs['modules'] = utils.getModules();
+ kwargs['server_name'] = kwargs['server_name'] || this.name;
+ kwargs['extra'] = kwargs['extra'] || {};
if(!kwargs['checksum']){
checksum = kwargs['checksum'] = utils.constructChecksum(kwargs);
} else {
checksum = kwargs['checksum'];
}
- kwargs['server_name'] = kwargs['server_name'] || this.name;
+ kwargs['event_id'] = event_id;
+ kwargs['timestamp'] = new Date().toISOString().split('.')[0];
+ kwargs['project'] = this.dsn.project_id;
kwargs['site'] = kwargs['site'] || this.site;
- kwargs['extra'] = kwargs['extra'] || {};
// this will happen asynchronously. We don't care about it's response.
this._enabled && this.send(kwargs);

0 comments on commit 8330f01

Please sign in to comment.