Issue
The stream_feeds package (v0.5.1) has a LoggingInterceptor hardcoded in StreamFeedsClientImpl (feeds_client_impl.dart:149) that always logs HTTP requests/responses to the console:
LoggingInterceptor(requestHeader: true),
This produces verbose output that clutters the debug console:
I/flutter: ╔╣ Request ║ POST
I/flutter: ║ https://feeds.stream-io-api.com/api/v2/feeds/...
I/flutter: ╔ Headers
I/flutter: ╟ Authorization: eyJhbGciOiJIUzI1NiJ9...
I/flutter: WebSocketClient: Connection state changed to Connected(...)
Proposed Solution
Add a configuration option to FeedsConfig to control logging:
class FeedsConfig {
const FeedsConfig({
this.enableLogging = kDebugMode, // or false by default
// ...existing fields
});
final bool enableLogging;
}
Then conditionally add the interceptor:
if (config.enableLogging) LoggingInterceptor(requestHeader: true)
Issue
The stream_feeds package (v0.5.1) has a LoggingInterceptor hardcoded in StreamFeedsClientImpl (feeds_client_impl.dart:149) that always logs HTTP requests/responses to the console:
This produces verbose output that clutters the debug console:
Proposed Solution
Add a configuration option to FeedsConfig to control logging:
Then conditionally add the interceptor: