kopia lustrzana https://gitlab.com/mysocialportal/relatica
Make reporting FINER onyl and _getUrl uses it
rodzic
36fbb38848
commit
94ceea7e1e
|
@ -256,7 +256,7 @@ class FriendicaClient {
|
||||||
(postsJson) async => postsJson
|
(postsJson) async => postsJson
|
||||||
.map((json) => TimelineEntryMastodonExtensions.fromJson(json))
|
.map((json) => TimelineEntryMastodonExtensions.fromJson(json))
|
||||||
.toList()))
|
.toList()))
|
||||||
.mapError((error) => error as ExecError);
|
.execErrorCast();
|
||||||
}
|
}
|
||||||
|
|
||||||
FutureResult<Uint8List, ExecError> getFileBytes(Uri url) async {
|
FutureResult<Uint8List, ExecError> getFileBytes(Uri url) async {
|
||||||
|
@ -515,7 +515,7 @@ class FriendicaClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
FutureResult<String, ExecError> _getUrl(Uri url) async {
|
FutureResult<String, ExecError> _getUrl(Uri url) async {
|
||||||
_logger.finest('GET: $url');
|
_logger.finer('GET: $url');
|
||||||
try {
|
try {
|
||||||
final response = await http.get(
|
final response = await http.get(
|
||||||
url,
|
url,
|
||||||
|
|
|
@ -24,7 +24,7 @@ import 'utils/app_scrolling_behavior.dart';
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await dotenv.load(fileName: '.env');
|
await dotenv.load(fileName: '.env');
|
||||||
Logger.root.level = Level.ALL;
|
Logger.root.level = Level.FINER;
|
||||||
|
|
||||||
MultipartFile.fromBytes('file', Uint8List.fromList([]),
|
MultipartFile.fromBytes('file', Uint8List.fromList([]),
|
||||||
filename: 'hello.jpg', contentType: MediaType('image', 'jpeg'));
|
filename: 'hello.jpg', contentType: MediaType('image', 'jpeg'));
|
||||||
|
@ -41,7 +41,6 @@ void main() async {
|
||||||
final entryManagerService = EntryManagerService();
|
final entryManagerService = EntryManagerService();
|
||||||
final timelineManager = TimelineManager();
|
final timelineManager = TimelineManager();
|
||||||
final galleryService = GalleryService();
|
final galleryService = GalleryService();
|
||||||
galleryService.getGalleries();
|
|
||||||
getIt.registerLazySingleton<ConnectionsManager>(() => ConnectionsManager());
|
getIt.registerLazySingleton<ConnectionsManager>(() => ConnectionsManager());
|
||||||
getIt.registerSingleton(galleryService);
|
getIt.registerSingleton(galleryService);
|
||||||
getIt.registerSingleton<EntryManagerService>(entryManagerService);
|
getIt.registerSingleton<EntryManagerService>(entryManagerService);
|
||||||
|
@ -52,6 +51,8 @@ void main() async {
|
||||||
() => MediaUploadAttachmentHelper());
|
() => MediaUploadAttachmentHelper());
|
||||||
getIt.registerLazySingleton<NotificationsManager>(
|
getIt.registerLazySingleton<NotificationsManager>(
|
||||||
() => NotificationsManager());
|
() => NotificationsManager());
|
||||||
|
galleryService.getGalleries();
|
||||||
|
|
||||||
await secretsService.initialize().andThenSuccessAsync((credentials) async {
|
await secretsService.initialize().andThenSuccessAsync((credentials) async {
|
||||||
if (credentials.isEmpty) {
|
if (credentials.isEmpty) {
|
||||||
return;
|
return;
|
||||||
|
|
Ładowanie…
Reference in New Issue