Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

2.0 KB
Raw Blame
diff --git a/lib/commonjs/index.js b/lib/commonjs/index.js
index e8e3320..36716b7 100644
--- a/lib/commonjs/index.js
+++ b/lib/commonjs/index.js
@@ -155,7 +155,8 @@ const {
 if (WebRTCModule === null) {
   throw new Error(`WebRTC native module not found.\n${_reactNative.Platform.OS === 'ios' ? 'Try executing the "pod install" command inside your projects ios folder.' : 'Try executing the "npm install" command inside your projects folder.'}`);
 }
-_Logger.default.enable(`${_Logger.default.ROOT_PREFIX}:*`);
+// Pi Bot: debug output (every peer-connection call) only in development builds.
+if (__DEV__) _Logger.default.enable(`${_Logger.default.ROOT_PREFIX}:*`);
 
 // Add listeners for the native events early, since they are added asynchronously.
 (0, _EventEmitter.setupNativeEvents)();
diff --git a/lib/module/index.js b/lib/module/index.js
index b23d92b..033c276 100644
--- a/lib/module/index.js
+++ b/lib/module/index.js
@@ -26,7 +26,8 @@ import RTCRtpTransceiver from './RTCRtpTransceiver';
 import RTCSessionDescription from './RTCSessionDescription';
 import RTCView from './RTCView';
 import ScreenCapturePickerView from './ScreenCapturePickerView';
-Logger.enable(`${Logger.ROOT_PREFIX}:*`);
+// Pi Bot: debug output (every peer-connection call) only in development builds.
+if (__DEV__) Logger.enable(`${Logger.ROOT_PREFIX}:*`);
 
 // Add listeners for the native events early, since they are added asynchronously.
 setupNativeEvents();
diff --git a/src/index.ts b/src/index.ts
index e08cfb6..bafa5b4 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -30,7 +30,8 @@ import RTCSessionDescription from './RTCSessionDescription';
 import RTCView, { type RTCVideoViewProps, type RTCIOSPIPOptions } from './RTCView';
 import ScreenCapturePickerView from './ScreenCapturePickerView';
 
-Logger.enable(`${Logger.ROOT_PREFIX}:*`);
+// Pi Bot: debug output (every peer-connection call) only in development builds.
+if (__DEV__) Logger.enable(`${Logger.ROOT_PREFIX}:*`);
 
 // Add listeners for the native events early, since they are added asynchronously.
 setupNativeEvents();