Make reporting FINER onyl and _getUrl uses it

merge-requests/67/merge
Hank Grabowski 2022-12-27 22:26:46 -05:00
rodzic 36fbb38848
commit 94ceea7e1e
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -256,7 +256,7 @@ class FriendicaClient {
(postsJson) async => postsJson
.map((json) => TimelineEntryMastodonExtensions.fromJson(json))
.toList()))
.mapError((error) => error as ExecError);
.execErrorCast();
}
FutureResult<Uint8List, ExecError> getFileBytes(Uri url) async {
@ -515,7 +515,7 @@ class FriendicaClient {
}
FutureResult<String, ExecError> _getUrl(Uri url) async {
_logger.finest('GET: $url');
_logger.finer('GET: $url');
try {
final response = await http.get(
url,

Wyświetl plik

@ -24,7 +24,7 @@ import 'utils/app_scrolling_behavior.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await dotenv.load(fileName: '.env');
Logger.root.level = Level.ALL;
Logger.root.level = Level.FINER;
MultipartFile.fromBytes('file', Uint8List.fromList([]),
filename: 'hello.jpg', contentType: MediaType('image', 'jpeg'));
@ -41,7 +41,6 @@ void main() async {
final entryManagerService = EntryManagerService();
final timelineManager = TimelineManager();
final galleryService = GalleryService();
galleryService.getGalleries();
getIt.registerLazySingleton<ConnectionsManager>(() => ConnectionsManager());
getIt.registerSingleton(galleryService);
getIt.registerSingleton<EntryManagerService>(entryManagerService);
@ -52,6 +51,8 @@ void main() async {
() => MediaUploadAttachmentHelper());
getIt.registerLazySingleton<NotificationsManager>(
() => NotificationsManager());
galleryService.getGalleries();
await secretsService.initialize().andThenSuccessAsync((credentials) async {
if (credentials.isEmpty) {
return;