diff --git a/android/app/src/main/kotlin/com/cBreez/client/BreezForegroundService.kt b/android/app/src/main/kotlin/com/cBreez/client/BreezForegroundService.kt index a6e6951a5..31a3e2770 100644 --- a/android/app/src/main/kotlin/com/cBreez/client/BreezForegroundService.kt +++ b/android/app/src/main/kotlin/com/cBreez/client/BreezForegroundService.kt @@ -4,6 +4,7 @@ import android.content.SharedPreferences import breez_sdk.ConnectRequest import breez_sdk.EnvironmentType import breez_sdk.GreenlightNodeConfig +import breez_sdk.LevelFilter import breez_sdk.LogEntry import breez_sdk.NodeConfig import breez_sdk.defaultConfig @@ -33,7 +34,7 @@ class BreezForegroundService : ForegroundService() { super.onCreate() Logger.tag(TAG).debug { "Creating Breez foreground service..." } registerNotificationChannels(applicationContext, DEFAULT_CLICK_ACTION) - val sdkLogListener = SdkLogInitializer.initializeNodeLogStream() + val sdkLogListener = SdkLogInitializer.initializeNodeLogStream(LevelFilter.DEBUG) sdkLogListener.subscribe(serviceScope) { l: LogEntry -> when (l.level) { "ERROR" -> Logger.tag(TAG).error { l.line } diff --git a/ios/Breez Notification Service Extension/NotificationService.swift b/ios/Breez Notification Service Extension/NotificationService.swift index aaeb56c0d..dd4f90e7e 100644 --- a/ios/Breez Notification Service Extension/NotificationService.swift +++ b/ios/Breez Notification Service Extension/NotificationService.swift @@ -31,7 +31,7 @@ class NotificationService: SDKNotificationService { setLogger(logger: logger) // Use the same SdkLogListener(:LogStream) to listen in on BreezSDK node logs do { - try setLogStream(logStream: logger) + try setLogStream(logStream: logger, filterLevel: LevelFilter.debug) } catch let e { self.logger.log(tag: TAG, line:"Failed to set log stream: \(e)", level: "ERROR") } diff --git a/lib/main.dart b/lib/main.dart index b901f34ec..ca1d4f223 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'dart:io'; +import 'package:breez_sdk/bridge_generated.dart'; import 'package:c_breez/bloc/account/account_bloc.dart'; import 'package:c_breez/bloc/account/credentials_manager.dart'; import 'package:c_breez/bloc/backup/backup_bloc.dart'; @@ -53,7 +54,7 @@ void main() async { var breezLogger = injector.breezLogger; final breezSDK = injector.breezSDK; if (!await breezSDK.isInitialized()) { - breezSDK.initialize(); + breezSDK.initialize(filterLevel: LevelFilter.Debug); breezLogger.registerBreezSdkLog(breezSDK); }