Skip to content

Commit e065fa3

Browse files
authored
Merge pull request #195 from GetStream/fix-faye-log-level
2 parents d1cdcbf + 2976ce6 commit e065fa3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/stream_feed/lib/src/client/stream_feed_client_impl.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class StreamFeedClientImpl implements StreamFeedClient {
4141
this.appId,
4242
this.fayeUrl = 'wss://faye-us-east.stream-io-api.com/faye',
4343
this.runner = Runner.client,
44-
Level logLevel = Level.WARNING,
44+
this.logLevel = Level.WARNING,
4545
LogHandlerFunction? logHandlerFunction,
4646
StreamAPI? api,
4747
StreamHttpClientOptions? options,
@@ -87,6 +87,7 @@ class StreamFeedClientImpl implements StreamFeedClient {
8787
return true;
8888
}
8989

90+
final Level logLevel;
9091
final String apiKey;
9192
final String? appId;
9293
Token? userToken;
@@ -123,7 +124,7 @@ class StreamFeedClientImpl implements StreamFeedClient {
123124
},
124125
};
125126

126-
late final FayeClient _faye = FayeClient(fayeUrl)
127+
late final FayeClient _faye = FayeClient(fayeUrl, logLevel: logLevel)
127128
..addExtension(_authExtension);
128129

129130
late final _subscriptions = <String, _FeedSubscription>{};

0 commit comments

Comments
 (0)