Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 82f6afa

Browse files
committed
fix: don't log expected missing file error
1 parent 467cfb7 commit 82f6afa

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/src/lightning-manager.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ class LightningManager {
121121

122122
constructor() {
123123
// Step 0: Subscribe to all events
124-
ldk.onEvent(EEventTypes.native_log, (line) =>
125-
console.log(`react-native-ldk: ${line}`),
126-
);
124+
ldk.onEvent(EEventTypes.native_log, (line) => {
125+
if (line.indexOf('Could not locate file at') > -1) {
126+
//Not an important error
127+
return;
128+
}
129+
console.log(`react-native-ldk: ${line}`);
130+
});
127131
ldk.onEvent(EEventTypes.ldk_log, (line) => console.log(`LDK: ${line}`));
128132
ldk.onEvent(EEventTypes.register_tx, this.onRegisterTx.bind(this));
129133
ldk.onEvent(EEventTypes.register_output, this.onRegisterOutput.bind(this));

lib/src/utils/result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Err<T> {
1919
) {
2020
// Don't console log for unit tests or if we're not in dev mode
2121
if (process.env.JEST_WORKER_ID === undefined && __DEV__) {
22-
console.info(error);
22+
// console.info(error);
2323
}
2424
}
2525

0 commit comments

Comments
 (0)