mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
refactor: remove some verbose logging
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user