add optional disable logging

This commit is contained in:
jane 2021-06-06 01:11:35 -04:00
parent bdc8662966
commit 58f04732d4
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ const crypto = require('crypto');
const port = 8080;
const log_disabled = false;
var app = express();
@ -12,6 +13,11 @@ const cache = {
};
if (log_disabled) {
console.prototype._log = console.log;
console.prototype.log = function (...args) { }
}
app.use("/files", express.static("projects"));
function get_indexes(project_id) {