ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix email logger typings
Chocobozzz40a8c0a4c4f6
diff --git a/server/helpers/logger.ts b/server/helpers/logger.tsindex 4bd00e5034..81b0dfaaae 100644--- a/server/helpers/logger.ts+++ b/server/helpers/logger.ts@@ -123,10 +123,9 @@ function buildLogger (labelSuffix?: string) {}function bunyanLogFactory (level: string) {- return function () {+ return function (...params: any[]) {let meta = null- let args: any[] = []- args.concat(arguments)+ let args = [].concat(params)if (arguments[0] instanceof Error) {meta = arguments[0].toString()@@ -143,6 +142,7 @@ function bunyanLogFactory (level: string) {}const bunyanLogger = {+ level: () => { },trace: bunyanLogFactory('debug'),debug: bunyanLogFactory('debug'),info: bunyanLogFactory('info'),diff --git a/server/lib/emailer.ts b/server/lib/emailer.tsindex 6bb61484b2..60284ea281 100644--- a/server/lib/emailer.ts+++ b/server/lib/emailer.ts@@ -222,7 +222,7 @@ class Emailer {sendmail: true,newline: 'unix',path: CONFIG.SMTP.SENDMAIL,- logger: bunyanLogger as any+ logger: bunyanLogger})}