Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve AppSync logging #145

Closed
tryWabbit opened this issue Jan 7, 2019 · 2 comments
Closed

Improve AppSync logging #145

tryWabbit opened this issue Jan 7, 2019 · 2 comments
Labels
feature-request New feature requests good first issue Good for newcomers

Comments

@tryWabbit
Copy link

Hello AWS Appsync Team!

Do we have a way to log the current parameters of a Mutation/Query request by a AWSClient object or anyhow? Currently i have to write method to log all the queries so it'll would be great if we can do that on all the requests to make debugging easy.

Thanks and Regards
Kuldeep Tanwar

@palpatim palpatim self-assigned this Jan 14, 2019
@palpatim palpatim added question A question about how to use an existing feature AppSync labels Jan 14, 2019
@palpatim
Copy link
Contributor

Hi @DreamBegin,

tl;dr: Unfortunately, AppSync doesn't have consistent logging coverage, so there's not a currently supported way to retrieve that info from the logs.

Discussion

The AWSAppSync module uses the AppSyncLog module to output log messages to the configured log. Clients can set up shared logging (which is used by all AWS SDK components, including AppSync, Auth, etc) by doing something similar to the docs example:

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

That will cause all AWS SDK modules to log at level verbose...assuming they're configured to do so.

Currently, the AWSAppSync module only uses the shared logger in a few locations, and query logging isn't included in that.

I am going to re-title this issue and label it as a feature request to consider for future update.

Note: We recommend setting the log level to .off before shipping to production.

@palpatim palpatim added feature-request New feature requests and removed question A question about how to use an existing feature labels Jan 14, 2019
@palpatim palpatim changed the title How to log Query, Mutation and Subscriptions Improve AppSync logging Jan 14, 2019
@palpatim palpatim assigned palpatim and unassigned palpatim Jan 14, 2019
@palpatim palpatim added the good first issue Good for newcomers label Feb 6, 2019
@palpatim palpatim removed the AppSync label Nov 4, 2020
@atierian
Copy link
Member

atierian commented Dec 7, 2023

Thank you for opening this issue. AWS AppSync SDK for iOS entered maintenance mode in September 2023 and will receive no further updates as of September 2024.

Please use Amplify Swift going forward. For information on upgrading to Amplify Swift, refer to the Upgrade from AppSync SDK documentation.

@atierian atierian closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature requests good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants