Skip to content

Commit

Permalink
Enable http logging for production
Browse files Browse the repository at this point in the history
  • Loading branch information
proninyaroslav committed Sep 4, 2024
1 parent 02457fe commit 3694676
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core/model/http/http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ class HttpClientImpl implements HttpClient {
@module
abstract class ClientModule {
@Injectable(env: [Env.prod])
http.Client get clientProd => http.Client();
http.Client get clientProd => HttpClientWithMiddleware.build(
middlewares: [
HttpLogger(logLevel: LogLevel.BODY),
],
);

@Injectable(env: [Env.dev])
http.Client get clientDev => HttpClientWithMiddleware.build(
Expand Down

0 comments on commit 3694676

Please sign in to comment.