1
votes

I'm working on a project in Google Script, but the Stackdriver logging is giving me some issues. When I run a script from the project, I can view the execution list and click on an execution to "expand" it and display the logs, such as error messages. However, if the script is run as a web app, for example calling a post request, I'm not able to view the logs. Clicking on the execution does nothing. This is an issue because I can't see any error messages, just that the execution failed. Cannot click on these executions, & thus cannot see the logs Any time I run the script from the editor I can view the logs

1
I don't know why, so this isn't an answer. I've faced your issue and it is very annoying. You need to switch to a GCP Project so that you can use Stackdriver Logging instead. Then you'll be able to see everything.Diego

1 Answers

2
votes

Basic logging doesn't support Web Apps' executions logs, only the info for each execution but not their logs. To see those kind of logs you need to use Stackdriver Logging in cloud.google.com, for this you need to follow these steps:

1) Create a Google Cloud project.

2) Link the script to the project going to "Resources"->"Cloud Platform project".

3) See the logs going to "View"->"Stackdriver Logging".