Permalink
Browse files

Make logging a bit easier

  • Loading branch information...
1 parent b58809b commit 942032b4f2afea10b7d9c1df8609845b9572ed8e mde committed Sep 12, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/adapters/riak/index.js
View
@@ -212,10 +212,16 @@ utils.mixin(Adapter.prototype, new (function () {
this.request = function (options, callback) {
var opts = options || {}
- , config = this.config;
+ , config = this.config
+ , method = opts.method || 'GET'
+ , url = config.protocol + '://' + config.host + ':' +
+ config.port + opts.url;
+
+ //console.log('>>> ', method, ' ', url);
+
request({
- method: opts.method || 'GET'
- , url: config.protocol + '://' + config.host + ':' + config.port + opts.url
+ method: method
+ , url: url
, data: opts.data || null
, dataType: 'json'
, headers: {

0 comments on commit 942032b

Please sign in to comment.