Remove unnecessary developer log statements

This commit is contained in:
Mohammad Salameh
2024-04-16 15:45:32 +03:00
parent 95f7ade9e6
commit 214c4bb749
3 changed files with 2 additions and 19 deletions

View File

@ -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;
}
}