【问题标题】:How to view the logging of Google Web App when other users are executing it?其他用户执行时如何查看 Google Web App 的日志记录?
【发布时间】:2020-10-14 18:08:21
【问题描述】:

我使用选项 execute the app as: User accessing the web app 部署了我的 Google App Script Webapp。

在 App Script Dashboard 中,我可以看到 webapp 的执行和日志记录。但是,当我(应用程序的所有者)执行它时,我只会看到日志记录。当另一个用户执行 webapp 时,我只看到执行,但我看不到 App Script Dashboard 的日志记录。

我如何才能在独立于执行用户的情况下查看应用程序的日志记录?

【问题讨论】:

    标签: logging google-apps-script web-applications


    【解决方案1】:

    您有两种查看执行情况的方式:

    • 允许其他用户编辑脚本(如果它处于开发模式),那么您将能够从 Apps 脚本仪表板查看所有执行。
    • 您可以将脚本链接到GCP project,然后您将能够从 GCP 日志查看器中查看执行情况。您可以从脚本进入 GCP 日志查看器:View -> Stackdriver Logging

    【讨论】:

    • 我将脚本链接到一个新的 GCP 项目,它成功了!
    【解决方案2】:

    该问题已报告here。考虑为 Google 开发者添加星号(在左上角),以便确定问题的优先级。


    与此同时,作为mentioned in the previous answer,切换 GCP 应该可以工作:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-10
      • 1970-01-01
      • 2018-01-30
      • 1970-01-01
      • 2020-11-13
      相关资源
      最近更新 更多