Logs

A great debugging resource is the ability to view your function logs. To do so, go to the left sidebar and select the Logs icon, as shown below, to view your function's execution history:

In the function logs, you can confirm that data was successfully posted to Ubidots with the 201 response code:

This is what your function returns. It must be in JSON dictionary format. In your code, make sure to use return to exit the function and return the dictionary.

You can also use logs for debugging. Print any variables defined earlier, or print any message that needs to be displayed to the user.

Last updated

Was this helpful?