My DO Functions are logging correctly if they are called from a trigger.
If they are being called over the web there is no record of an activation and no error log available.
Does anyone know why this is? I am sure i used to see logging for functions called over the web.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
Indeed, it’s true that web functions do not store activation records when they’re invoked over the web. We do, however, store activation records when these functions are triggered from within the system.
At this time, if you need to collect logs from when your web functions are invoked over the web, I could suggest enabling log shipping. You can find a step by step guide on how to do that here:
But besides that, you still have the ability to view logs for interactive invocations of web functions via the DigitalOcean Control Panel. This can be particularly useful during the development process.
The team is actively working on expanding and refining our documentation regarding logs, web functions, and non-web functions. This is an ongoing process, and our goal is to continually improve so your feedback is highly appreciated!
Hope that this helps!
Best,
Bobby