没有日志firebase功能
编辑: 事实证明,UI上的Firebase功能过滤被打破。例如,如果选择该功能,则不会显示日志。但是我可以看到日志,如果关闭过滤器并查看所有日志,
我在主机/printlog上运行的简单firebase函数
这是
exports.printLog = functions.https.onRequest((request, response) => {
functions.logger.log("hhellooooo");
response.send("okie dokie").status(200).end();
})
我在向URL发送请求时的函数实现,我会得到响应“ Okie dokie”,所以我知道功能正在运行,但没有日志消息。
% curl host/printLog
okie dokie
我没有任何日志,即使在功能启动和停止时,Firebase生成的创新日志也没有。我仍在获得其他一些功能的日志,但是其他一些功能也没有生成日志
EDIT:
Turns out firebase function filtering is broken on the UI. E.G. If I select the function, no logs show. But I can see logs if I turn off the filter and view all logs
I have a simple firebase function running at host/printLog
Here is my function implementation
exports.printLog = functions.https.onRequest((request, response) => {
functions.logger.log("hhellooooo");
response.send("okie dokie").status(200).end();
})
When I send a request to the URL, I get the response "okie dokie", so I know the functions is running, but no log messages.
% curl host/printLog
okie dokie
I don't get any logs, even the innovation logs generated by firebase when the function starts and stops. I am still getting logs for some of my other functions, but some of other functions aren't generating logs either
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图重现您使用日志收到的问题。
我部署了您在问题中提供的功能,
我向URL发送了一个请求,并且在收到Hhellooooo的日志中,即使我按照函数的名称过滤,它也可以正常工作,如下所示,它的工作正常截屏。
I tried to reproduce the issue that you are receiving with the logs.
I deployed the function that you have provided in your question
I sent a request to the URL, and in the logs I am receiving the hhellooooo, and even when I filter according to the name of the Function, it’s working fine as shown in the below screenshot.