Skip to content

Commit

Permalink
chore(frontend): Disable dio logs for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Grohden committed Aug 5, 2020
1 parent e5fcd9b commit 9cc2abe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ class TaggerApp extends StatelessWidget {
content: const Text('Your session is not valid anymore'),
));
}
}))
..interceptors.add(LogInterceptor(responseBody: false));
}));

if (_isInDebugMode) {
dio.interceptors.add(LogInterceptor(responseBody: false));
}

final tagger = Get.put<RepositoryTaggerClient>(
RepositoryTaggerCacheClient(
Expand Down

0 comments on commit 9cc2abe

Please sign in to comment.