mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
Remove unnecessary developer log statements
This commit is contained in:
@ -74,11 +74,8 @@ class HTTPService {
|
||||
data: body,
|
||||
queryParameters: queryParameters,
|
||||
);
|
||||
developer.log("status code is ${response.statusCode}");
|
||||
return expectedResponseModel(response.data);
|
||||
} catch (error) {
|
||||
developer.log("******* Error");
|
||||
developer.log(error.toString());
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
@ -89,21 +86,15 @@ class HTTPService {
|
||||
Map<String, dynamic>? queryParameters,
|
||||
required T Function(dynamic) expectedResponseModel}) async {
|
||||
try {
|
||||
developer.log("download begins");
|
||||
final response = await client.download(
|
||||
path,
|
||||
savePath,
|
||||
onReceiveProgress: (current, total) {
|
||||
developer.log("current = $current, while total = $total");
|
||||
},
|
||||
onReceiveProgress: (current, total) {},
|
||||
);
|
||||
developer.log("download ends");
|
||||
|
||||
return expectedResponseModel(response.data);
|
||||
// return expectedResponseModel(response.data);
|
||||
} catch (error) {
|
||||
developer.log("******* Error");
|
||||
developer.log("download error");
|
||||
developer.log(error.toString());
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
@ -121,8 +112,6 @@ class HTTPService {
|
||||
);
|
||||
return expectedResponseModel(response.data);
|
||||
} catch (error) {
|
||||
developer.log("******* Error");
|
||||
developer.log(error.toString());
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user