Back

[SOLVED] Logs not appearing in execution viewer

  • 0
  • Functions
  • Web
PoppingPopper
10 Nov, 2023, 20:59

Hi, I'm building a slack application with Appwrite and I'm attempting to listen to events which appear to be calling my Appwrite function.

Upon inspection of the executions I can't see any of the logs I've put in my function. As you can see by the code I've provided I'm using the context.log function.

I've redeployed the function and tried several times with no luck. Let me know if you can see what I'm doing wrong.

TL;DR
The user is having an issue where their logs are not appearing in the execution viewer for their Appwrite function. They have tried redeploying the function but it didn't solve the problem. They are wondering if they are doing something wrong.
PoppingPopper
10 Nov, 2023, 21:00
Drake
10 Nov, 2023, 21:52

Probably because it's executing line 4

PoppingPopper
10 Nov, 2023, 22:17

I suspect not because I am getting a 200 in the Status Code on the execution view.

PoppingPopper
10 Nov, 2023, 22:17
Drake
10 Nov, 2023, 22:22

Also line 22 should include a return statement

PoppingPopper
10 Nov, 2023, 22:22

ok

PoppingPopper
10 Nov, 2023, 22:51

I think I've figured it out.. It's deploying an older commit? Not sure how I can update that.

Drake
10 Nov, 2023, 22:51

Is there a newer commit in the deployment logs?

PoppingPopper
10 Nov, 2023, 22:52

Yes but I am manually triggering it because I saw that it would no longer redeploy automatically when pushing to the branch it's working with.

Drake
10 Nov, 2023, 22:53

That's weird...

PoppingPopper
10 Nov, 2023, 22:53

Yea I think I'll try the cli or something. Thanks for your help!

PoppingPopper
10 Nov, 2023, 22:53

[SOLVED] Logs not appearing in execution viewer

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more