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.
1
votes
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".