From 5793f7fd5c5ccd8b380c283622c20373e08e0444 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Tue, 5 Nov 2024 19:48:33 +0300 Subject: [PATCH] Set default filter level on bindings tests --- libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go | 4 +++- libs/sdk-bindings/tests/bindings/test_breez_sdk.cs | 2 +- libs/sdk-bindings/tests/bindings/test_breez_sdk.kts | 2 +- libs/sdk-bindings/tests/bindings/test_breez_sdk.swift | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go b/libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go index ac189f5d0..1715840ce 100644 --- a/libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go +++ b/libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go @@ -22,7 +22,9 @@ func (BreezListener) OnEvent(e breez_sdk.BreezEvent) { func main() { breezListener := BreezListener{} - breez_sdk.SetLogStream(breezListener, breez_sdk.LevelFilterTrace) + filterLevel := breez_sdk.LevelFilterTrace + + breez_sdk.SetLogStream(breezListener, &filterLevel) seed, err := breez_sdk.MnemonicToSeed("repeat hawk combine screen network rhythm ritual social neither casual volcano powder") diff --git a/libs/sdk-bindings/tests/bindings/test_breez_sdk.cs b/libs/sdk-bindings/tests/bindings/test_breez_sdk.cs index 15b0e036a..e6f2ae88c 100644 --- a/libs/sdk-bindings/tests/bindings/test_breez_sdk.cs +++ b/libs/sdk-bindings/tests/bindings/test_breez_sdk.cs @@ -4,7 +4,7 @@ try { var seed = BreezSdkMethods.MnemonicToSeed("repeat hawk combine screen network rhythm ritual social neither casual volcano powder"); - BreezSdkMethods.SetLogStream(new LogStreamListener()); + BreezSdkMethods.SetLogStream(new LogStreamListener(), LevelFilter.trace); var config = BreezSdkMethods.DefaultConfig(EnvironmentType.PRODUCTION, "code", new NodeConfig.Greenlight(new GreenlightNodeConfig(null, null))); var connectRequest = new ConnectRequest(config, seed); BlockingBreezServices sdkServices = BreezSdkMethods.Connect(connectRequest, new SDKListener()); diff --git a/libs/sdk-bindings/tests/bindings/test_breez_sdk.kts b/libs/sdk-bindings/tests/bindings/test_breez_sdk.kts index 641488297..94976113f 100644 --- a/libs/sdk-bindings/tests/bindings/test_breez_sdk.kts +++ b/libs/sdk-bindings/tests/bindings/test_breez_sdk.kts @@ -16,7 +16,7 @@ class LogStreamListener: breez_sdk.LogStream { } try { - breez_sdk.setLogStream(LogStreamListener()); + breez_sdk.setLogStream(LogStreamListener(), filterLevel: LevelFilter.trace); var seed = breez_sdk.mnemonicToSeed("repeat hawk combine screen network rhythm ritual social neither casual volcano powder"); var config = breez_sdk.defaultConfig(breez_sdk.EnvironmentType.PRODUCTION, "code", breez_sdk.NodeConfig.Greenlight(breez_sdk.GreenlightNodeConfig(null, null))) var connectRequest = breez_sdk.ConnectRequest(config, seed) diff --git a/libs/sdk-bindings/tests/bindings/test_breez_sdk.swift b/libs/sdk-bindings/tests/bindings/test_breez_sdk.swift index 3b1656ea5..5273760c3 100644 --- a/libs/sdk-bindings/tests/bindings/test_breez_sdk.swift +++ b/libs/sdk-bindings/tests/bindings/test_breez_sdk.swift @@ -16,7 +16,7 @@ class LogStreamListener: LogStream { } do { - try setLogStream(logStream: LogStreamListener()); + try setLogStream(logStream: LogStreamListener(), filterLevel: LevelFilter.trace); let seed = try mnemonicToSeed(phrase: "repeat hawk combine screen network rhythm ritual social neither casual volcano powder"); let config = breez_sdk.defaultConfig(envType: EnvironmentType.production, apiKey: "code", nodeConfig: NodeConfig.greenlight(config: GreenlightNodeConfig(partnerCredentials: nil, inviteCode: nil))); let connectRequest = ConnectRequest(config: config, seed: seed)