Permalink
Browse files

[api] Add date information to the exception info

  • Loading branch information...
1 parent baf392e commit 793d6b34d919db54ded83d986b72acaf22e7a77f @mmalecki mmalecki committed May 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/winston/exception.js
View
@@ -13,6 +13,7 @@ var exception = exports;
exception.getAllInfo = function (err) {
return {
+ date: new Date().toString(),
process: exception.getProcessInfo(),
os: exception.getOsInfo(),
trace: exception.getTrace(err),
@@ -52,4 +53,4 @@ exception.getTrace = function (err) {
native: site.isNative(),
}
});
-};
+};

0 comments on commit 793d6b3

Please sign in to comment.