question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does AppSyncClient use Amplify Logger?

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behavior? Setting Amplify.Logger.LOG_LEVEL = 'DEBUG'; does not emit any appsync related logs.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Set Amplify.Logger.LOG_LEVEL = ‘DEBUG’; and watch the console logs.

What is the expected behavior?

I should be able to see some appsync related logs.

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions? Latest versions.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
isocracommented, Nov 5, 2019

How do you enable this in Expo/React Native?

I’ve tried in my typescript code to put

import { debug } from 'debug';
debug.enable('aws-appsync:*');

But this doesn’t have any effect.

0reactions
manueliglesiascommented, Feb 19, 2019

Regarding not seeing the messages in prod, I think your bundler might not be including the debug module maybe?

Actually running in dev mode (localhost) and with aws-appsync:, produces debug logs from sockjs-client:main:

I noticed it is missing the ‘*’, can you try with aws-appsync:*

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitoring and logging - AWS AppSync
You can use CloudWatch metrics to monitor and provide alerts about specific events that can result in HTTP status codes or from latency....
Read more >
API (GraphQL) - Fetch data - JavaScript - AWS Amplify Docs
Learn more about how to fetch data using Amplify's GraphQL API category ... You can optionally import the graphqlOperation helper function to help...
Read more >
AWS amplify console.log() from backend side - Stack Overflow
You can view the console.log() using AWS CloudWatch Logs. But as you want to view the logs from your terminal I would recommend...
Read more >
Tackling User Authorization in GraphQL with AWS AppSync
As a user, we log in to the application and receive an identity token. ... The tools that we will be using to...
Read more >
Using AppSync Client from Lambda - Edward Beazer Blog
It took me a while to figure out how to use the Amplify GraphQL client in a lambda so I can access my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found