我使用express作为Firebase函数的服务器。我的服务器中有许多端点,它们都是由快速路由器管理的。然后,我将快速实例传递给firebase,它工作得很好。
我的问题是,每次调用端点时,控制台中都会显示以下日志行:
i functions: Beginning execution of "app"
i functions: Finished "app" in ~5s
虽然很高兴知道我的端点需要多长时间才能完成,但是这些日志行对我来说毫无意义,因为它们总是只提到"app“。没有有用的信息。
这是合法的,适合我的配置,但我想摆脱那些日志行。在正式文
我正在尝试使用Firebase Analytics记录事件和当前屏幕,并在我的logcat中记录以下日志:
App measurement is starting up, version: 9877
Registered activity lifecycle callback
Checking service availability
Service available
Connecting to remote service
onActivityCreated
Activity resumed, time: 234385086
Connected to remote service
Logg
我有一个安卓应用程序,其中使用服务器上的MySQL数据库。当新数据插入到表中时,我的php文件通过Firebase推送通知。如果firebase将通知发送到单个设备,数据将保存到table_1,如果firebase无法发送通知,数据将保存到table_2。我的问题是,是否可以检查firebase是否以php发送通知? FirebaseNotification.php class FirebaseNotification {
public function send($registration_ids, $notification){
$fields = array(
当发生createUserWithEmailAndPassword事件时,SignUpUser函数中没有调用onClick函数。但是当我做onClick={signUpUser(email,password)}的时候它就起作用了
import React from 'react';
import styled from 'styled-components';
import { useState } from 'react';
import { signUpUser } from '../firebase';
function
我正在尝试遵循指南,将一些定制的日志记录放到一个firebase函数中。函数本身正在运行,我可以看到数据正在传递(它是https 'callable‘函数)。但是,一旦它到达了它试图真正写入日志条目的那一行,我就得到了"Error: 7 PERMISSION_DENIED“。
由于console.log()调用写入云日志,所以我假设firebase函数可以访问云日志记录。但也许还需要额外的许可?不过,我找不到任何关于这一页应该设置在哪里的参考资料。
// Logging, logName, region, functions are provided by the surrou
我有一个Xcode应用程序(用Swift编写),它调用部署在Firebase中的HTTP python函数。它应该得到一个响应,但由于某些原因,当数据为空时,它总是返回。
// swift function in xcode
Functions.functions().httpsCallable("python_callable").call(["ID": ID, "time": String(currentTime)]) { (result, error) in
if error != nil
简而言之:是否可以防止默认调试日志:
Firebase函数中的Function execution started和Function execution took {time} ms, finished with status code: {code}?
默认情况下,似乎GCP日志()记录了函数执行的每个开始和完成。如果我只想从某个函数中记录我自己的日志,那么是否有可能阻止这种默认日志记录?
,我在日志文件中观察到了一些我无法解释的:
项目中的所有代码都是运行在Windows 7 64位上的ANSI C,32位exe
我有一个与这个类似的worker函数,它运行在单线程程序中,不使用递归。在调试期间,日志记录包括如下所示:
//This function is called from an event handler
//triggered by a UI timer similar in concept to
//C# `Timer.OnTick` or C++ Timer::OnTick
//with tick period set to a shorter duration