Permalink
Browse files

matched dantebronto's code style for logging

  • Loading branch information...
1 parent 9a82a0a commit 4834412ac6eaee197037d3a72ba89ec0fe7a543b Tynt committed with Apr 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/picard/request.js
@@ -58,9 +58,9 @@ var RequestExtensions = {
},
log: function(scope){
var now = new Date();
- var dateString = now.getFullYear() + "-" + ("0" + (now.getMonth() + 1)).slice(-2) + "-" + ("0" + (now.getDate())).slice(-2) + " " + ("0" + (now.getHours())).slice(-2) + ":" + ("0" + (now.getMinutes())).slice(-2) + ":" + ("0" + (now.getSeconds())).slice(-2);
sys.puts([
- dateString, ' ',
+ now.getFullYear(), '-', ('0' + (now.getMonth() + 1)).slice(-2), '-', ('0' + (now.getDate())).slice(-2), ' ',
+ ('0' + (now.getHours())).slice(-2), ':', ('0' + (now.getMinutes())).slice(-2), ':', ('0' + (now.getSeconds())).slice(-2), ' ',
(this._method || this.method).toUpperCase(), ' ',
this.parsedUrl().pathname, ' ', scope.status
].join(''))

0 comments on commit 4834412

Please sign in to comment.