removed forgotten console.logs

This commit is contained in:
zadam
2020-08-28 22:52:57 +02:00
parent 416b7088c5
commit 5a8c3f6a2b
6 changed files with 16 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ const escape = require('escape-html');
const sanitize = require("sanitize-filename");
const mimeTypes = require('mime-types');
const path = require('path');
const log = require('./log');
function newEntityId() {
return randomString(12);
@@ -65,13 +66,13 @@ function prepareSqlForLike(prefix, str, suffix) {
}
function stopWatch(what, func) {
const start = new Date();
const start = Date.now();
const ret = func();
const tookMs = Date.now() - start.getTime();
const tookMs = Date.now() - start;
console.log(`${what} took ${tookMs}ms`);
log.info(`${what} took ${tookMs}ms`);
return ret;
}