diff --git a/packages/server/src/providers/Express.ts b/packages/server/src/providers/Express.ts index 2852ec0..08f3cda 100644 --- a/packages/server/src/providers/Express.ts +++ b/packages/server/src/providers/Express.ts @@ -129,7 +129,7 @@ class Express { }); Log.info(`Loaded certificate for domain ${domain}`); } catch (e: any) { - Log.error(`No SSL certificate found for domain ${domain}: ${e instanceof Error ? e.message : e}`); + Log.warn(`No SSL certificate found for domain ${domain}: ${e instanceof Error ? e.message : e}`); certificate = tls.createSecureContext(tempCertificate); } diff --git a/packages/utils/src/Log/Log.ts b/packages/utils/src/Log/Log.ts index 5f88c04..38df89d 100644 --- a/packages/utils/src/Log/Log.ts +++ b/packages/utils/src/Log/Log.ts @@ -38,9 +38,6 @@ export class Log { // Adds ERROR prefix string to the log string public error(_string: string, options?: LogOptions) { - // Line break and show the first line - console.log('\x1b[31m%s\x1b[0m', `[ERROR] :: ${_string.split(/r?\n/)[0]}`); - this.__addLog('ERROR', _string, options); }