Skip to content

Commit

Permalink
debug logging updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Shakila147 committed Nov 21, 2024
1 parent 7f1e28d commit 7c4dee4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/huawei_store_search_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ class HuaweiStoreSearchAPI {
if (response.statusCode == 200) {
// Parse and return app info from response
final jsonResponse = jsonDecode(response.body);
print('App info result: ${jsonResponse['ret']}');
print('App version: ${jsonResponse['appInfo']["versionNumber"]}');
if (debugLogging) {
print('App info result: ${jsonResponse['ret']}');
print('App version: ${jsonResponse['appInfo']["versionNumber"]}');
}
return AppInfoResponse.fromJson(jsonResponse);
} else if (response.statusCode == 401 && !hasRetried) {
// Token expired, attempt refresh and retry once
Expand Down

0 comments on commit 7c4dee4

Please sign in to comment.