aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

Console.log doesn't seem to work in Javascript resolvers #321

Closed mrForce closed 8 months ago

mrForce commented 11 months ago

While on a call with AWS Support, we noticed that using console.log doesn't seem to work in JS resolvers. Has anyone else had this issue?

Resolver (simple example): ` /**

/**

It logs an ExecutionSummary, and then a RequestSummary. But it doesn't log hello (I've tried a few different console.log in both request and response, and none of them worked).

ATaiIsHere commented 11 months ago

Verify that the 'Field resolver log level' in the AppSync settings is set to 'ALL'.

thetoxicavenger commented 11 months ago

@mrForce did that resolve your issue? I've been getting stack failed to deploy CDK errors when using console.log or console.error in my resolvers.

onlybakam commented 8 months ago

@mrForce let us know if you're still experiencing this issue. @thetoxicavenger can you share more details or open a case with AWS Support?

mrForce commented 8 months ago

Verify that the 'Field resolver log level' in the AppSync settings is set to 'ALL'.

Yes, that fixed it. I'll close the issue out now.