From 2e3ced600685eb85e86a0990b43968007e73ac82 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 18 Oct 2024 07:45:49 +0900 Subject: [PATCH] fix(tuna-obs): fix lite mode logic --- src/plugins/tuna-obs/index.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/tuna-obs/index.ts b/src/plugins/tuna-obs/index.ts index fae1c641..1320ea95 100644 --- a/src/plugins/tuna-obs/index.ts +++ b/src/plugins/tuna-obs/index.ts @@ -68,11 +68,13 @@ export default createPlugin({ }) .catch((error: { code: number; errno: number }) => { if (!this.liteMode && is.dev()) { - console.debug( - `Error: '${ - error.code || error.errno - }' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`, - ); + if (is.dev()) { + console.debug( + `Error: '${ + error.code || error.errno + }' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`, + ); + } this.liteMode = true; } });