refactor: remove some verbose logging

isekai-main
Barış Soner Uşaklı 3 years ago
parent afe478b799
commit 9abe22a04b

@ -357,8 +357,6 @@ Emailer.sendViaFallback = async (data) => {
// NodeMailer uses a combined "from" // NodeMailer uses a combined "from"
data.from = `${data.from_name}<${data.from}>`; data.from = `${data.from_name}<${data.from}>`;
delete data.from_name; delete data.from_name;
winston.verbose(`[emailer] Sending email to uid ${data.uid} (${data.to})`);
await Emailer.fallbackTransport.sendMail(data); await Emailer.fallbackTransport.sendMail(data);
}; };

@ -163,7 +163,6 @@ module.exports = function (Posts) {
await Promise.all(filePaths.map(async (fileName) => { await Promise.all(filePaths.map(async (fileName) => {
try { try {
const size = await image.size(_getFullPath(fileName)); const size = await image.size(_getFullPath(fileName));
winston.verbose(`[posts/uploads/${fileName}] Saving size (${size.width}px x ${size.height}px)`);
await db.setObject(`upload:${md5(fileName)}`, { await db.setObject(`upload:${md5(fileName)}`, {
width: size.width, width: size.width,
height: size.height, height: size.height,

Loading…
Cancel
Save