From 0673380aa947bc39f49d3305ac0a762056fa3216 Mon Sep 17 00:00:00 2001 From: Isla Koenigsknecht Date: Wed, 8 Jan 2025 08:30:39 -0500 Subject: [PATCH] Add back debug logging --- packages/desktop/src/main/main.ts | 2 +- packages/mobile/android/app/src/main/cpp/own-native-lib.cpp | 2 +- packages/mobile/ios/NodeJsMobile/NodeRunner.mm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/desktop/src/main/main.ts b/packages/desktop/src/main/main.ts index 6497399250..36745c1b89 100644 --- a/packages/desktop/src/main/main.ts +++ b/packages/desktop/src/main/main.ts @@ -396,7 +396,7 @@ app.on('ready', async () => { backendProcess = fork(backendBundlePath, forkArgvs, { env: { NODE_OPTIONS: '--experimental-global-customevent', - DEBUG: 'backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p:connection-manager:auto-dial', + DEBUG: 'backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p*,helia*,blockstore*', COLORIZE: 'true', }, }) diff --git a/packages/mobile/android/app/src/main/cpp/own-native-lib.cpp b/packages/mobile/android/app/src/main/cpp/own-native-lib.cpp index 7f06ec1c48..ccba717aae 100644 --- a/packages/mobile/android/app/src/main/cpp/own-native-lib.cpp +++ b/packages/mobile/android/app/src/main/cpp/own-native-lib.cpp @@ -150,7 +150,7 @@ Java_com_quietmobile_Backend_BackendWorker_startNodeWithArguments( // Set the builtin_modules path to NODE_PATH. const char *path_path = env->GetStringUTFChars(modulesPath, 0); setenv("NODE_PATH", path_path, 1); - setenv("DEBUG", "backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p:connection-manager:auto-dial", 1); + setenv("DEBUG", "backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p*,helia*,blockstore*", 1); env->ReleaseStringUTFChars(modulesPath, path_path); // argc diff --git a/packages/mobile/ios/NodeJsMobile/NodeRunner.mm b/packages/mobile/ios/NodeJsMobile/NodeRunner.mm index c76269c46b..1953fd9692 100644 --- a/packages/mobile/ios/NodeJsMobile/NodeRunner.mm +++ b/packages/mobile/ios/NodeJsMobile/NodeRunner.mm @@ -205,7 +205,7 @@ - (void) startEngineWithArguments:(NSArray*)arguments:(NSString*)builtinModulesP nodePath = [nodePath stringByAppendingString:builtinModulesPath]; } setenv([@"NODE_PATH" UTF8String], (const char*)[nodePath UTF8String], 1); - setenv([@"DEBUG" UTF8String], "backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p:connection-manager:auto-dial", 1); + setenv([@"DEBUG" UTF8String], "backend*,quiet*,state-manager*,desktop*,utils*,identity*,common*,libp2p*,helia*,blockstore*,datastore*", 1); int c_arguments_size=0;