Browse files

Updated to use the new version of ofuda.

  • Loading branch information...
1 parent 41ec0d0 commit 2ceb79b1ef53515d5923209561d40e29918b311d @wolfeidau committed Nov 26, 2012
Showing with 8 additions and 3 deletions.
  1. +6 −1 lib/winston-crashlog.js
  2. +2 −2 package.json
View
7 lib/winston-crashlog.js
@@ -20,6 +20,11 @@ var CrashLog = exports.CrashLog = function (options) {
this.name = 'CrashLog';
this.client = new Ofuda(options);
+ this.credentials = {
+ accessKeyId: options.accessKeyId,
+ accessKeySecret: options.accessKeySecret
+ };
+
this.level = options.level || 'error';
this.notifierName = options.name || 'nodejsapp';
this.notifierVersion = options.name || '0.0.1';
@@ -105,7 +110,7 @@ CrashLog.prototype._buildMessage = function (msg, meta) {
CrashLog.prototype._request = function (body, requestDate) {
- return this.client.signHttpRequest(this._checkSumRequest({
+ return this.client.signHttpRequest(this.credentials, this._checkSumRequest({
method:'POST',
host:this.host,
port:this.port,
View
4 package.json
@@ -1,7 +1,7 @@
{
"name":"winston-crashlog",
"description":"Winston transport for crashlog.io.",
- "version":"0.1.3",
+ "version":"0.1.4",
"homepage":"https://github.com/wolfeidau/winston-crashlog",
"author":{
"name":"Mark Wolfe",
@@ -29,7 +29,7 @@
},
"dependencies":{
"winston":"*",
- "ofuda":"*"
+ "ofuda":"~0.3.0"
},
"devDependencies":{
"grunt":"~0.3.17",

0 comments on commit 2ceb79b

Please sign in to comment.