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!
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:
https://docs.digitalocean.com/products/functions/how-to/forward-logs/
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.