Question

DO Functions logging

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.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 20, 2023

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel