Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

matched dantebronto's code style for logging

  • Loading branch information...
commit 4834412ac6eaee197037d3a72ba89ec0fe7a543b 1 parent 9a82a0a
Tynt authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/picard/request.js
View
4 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(''))
Please sign in to comment.
Something went wrong with that request. Please try again.