ImportHtml: Get the logger once

This commit is contained in:
Richard Hansen 2021-11-15 03:15:57 -05:00
parent 6e19d888d3
commit db105e8650

View file

@ -22,9 +22,9 @@ const jsdom = require('jsdom');
const rehype = require('rehype');
const minifyWhitespace = require('rehype-minify-whitespace');
exports.setPadHTML = async (pad, html) => {
const apiLogger = log4js.getLogger('ImportHtml');
exports.setPadHTML = async (pad, html) => {
rehype()
.use(minifyWhitespace, {newlines: false})
.process(html, (err, output) => {