awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 128 forks source link

feat: Upgrade AppSyncRTClient 1.8.0 and enable logs #519

Closed lawmicha closed 2 years ago

lawmicha commented 2 years ago

Issue #, if available:

Description of changes: Because we are using AppSyncRealTimeClient.logLevel which is introduced in 1.8, we should also set the minimum dependency on it to 1.8. This PR propagates the logLevel set when using AppSync SDK down to the logLevel of AppSyncRTClient.

Developers using AppSync SDK uses the SDK's logging mechansim AWSDDLog, ie.

AWSDDLog.sharedInstance.logLevel = .verbose
AWSDDLog.sharedInstance.add(AWSDDTTYLogger.sharedInstance)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

lawmicha commented 2 years ago

rebased and reran integration tests - all passing