chore: remove micro, use http.createServer
and change debug logging to info
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = async function server(req, res) {
|
||||
let filename;
|
||||
const { url, format } = req.queryParams;
|
||||
|
||||
logger.debug(`Request: ${req.url}`);
|
||||
logger.info(`Request: ${req.url}`);
|
||||
|
||||
if (!url) {
|
||||
sendError(res, 400);
|
||||
@@ -69,7 +69,7 @@ module.exports = async function server(req, res) {
|
||||
}
|
||||
|
||||
const dlFilepath = path.join(__dirname, '../data', filename);
|
||||
logger.debug(`Downloaded file is ${dlFilepath}`);
|
||||
logger.info(`Downloaded file is ${dlFilepath}`);
|
||||
|
||||
if (!sent) {
|
||||
fs.readFile(dlFilepath, (err, fileBuffer) => {
|
||||
|
||||
Reference in New Issue
Block a user