ImportHtml: Get the logger once

pull/5285/head
Richard Hansen 2021-11-15 03:15:57 -05:00
parent 6e19d888d3
commit db105e8650
1 changed files with 2 additions and 2 deletions

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');
const apiLogger = log4js.getLogger('ImportHtml');
exports.setPadHTML = async (pad, html) => {
rehype()
.use(minifyWhitespace, {newlines: false})
.process(html, (err, output) => {