Skip to content

Commit

Permalink
Add date to log output
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrant committed Mar 21, 2017
1 parent 21b0151 commit 12ba25f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ PDFJS.getDocument = function getDocument(src,
source = src;
}

console.info("Loading PDF from " + src.url);
console.info('[' + new Date() + "] Loading PDF from " + src.url);

var params = {};
for (var key in source) {
Expand Down Expand Up @@ -790,7 +790,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {

if (stats.enabled) {
var consoleStats = stats.toString().trim().replace(/\n/g, ', ').replace(/\s+/g, ' ');
console.info('Page ' + this.pageNumber + ' complete: ' + consoleStats);
console.info('[' + new Date() + '] Page ' + this.pageNumber + ' complete: ' + consoleStats);
}
}

Expand Down

0 comments on commit 12ba25f

Please sign in to comment.