Skip to content

Commit

Permalink
Add back debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Jan 8, 2025
1 parent 92a4bb1 commit 0673380
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/ios/NodeJsMobile/NodeRunner.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0673380

Please sign in to comment.