1

I created a simple web app to test this case

function doGet(e) {
  console.log("User: %s", Session.getActiveUser().getEmail());
  console.log("Parameters: %s", JSON.stringify(e));
};

The application is published as "me", and everyone in my organization can access it enter image description here

Using default StackDriver Logging console, all the requests are empty. There is a log entry for each received requests but no details for single log lines are attached.

Only when I open the URL by the "me" account itself, I can open the request and see log lines, but when opened by other users on the organization, I simply have a log entry, no details: enter image description here (other requests cannot be expanded)

As mentioned in another question I tried to set up a GCP project (after configuring Consent Screen and re-authorizing the script) and now I can see logs from all requests, but there are all "mixed up" (there is no a single log entry which group log lines from the same request).

enter image description here

With an actual application that writes a large number of log lines, it will be impossible to read through the log lines of a single HTTP request.

The only (not very comfortable) way I found to filter log lines are with the given attributes: enter image description here Filtering by process_id I think I can view only the log lines of the same request, but it is not very handy as having the log lines already grouped by request as in the Executions Apps Script page. enter image description here

  • Is it expected that in StackDriver Executions interface (the one provided by default by Apps Script) no log lines are provided, only request entries for different users?
  • From GCP StackDriver Logging console, is there a way to filter/group log lines of the same request in order to debug a single request? Like happens with App Engine Standard logs
Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Deviling Master
  • 3,033
  • 5
  • 34
  • 59
  • What do you mean by "all requests are empty"? It seems to me that https://i.stack.imgur.com/qcD18.png and https://i.stack.imgur.com/xPvIo.png provided the same information? – ziganotschka Apr 06 '20 at 12:49
  • I can expand only the request made by the "me" user, for all other I can see the request (the head as you can see in image) but I'm unable to open it, no log lines attached. The one you see opened in the image is because is made by the "me" user, the others cannot be expanded – Deviling Master Apr 06 '20 at 12:53

0 Answers0