We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node: 18.19.0
firebase-functions: 4.6.0
firebase-tools: 12.9.1
firebase-admin: 11.11.0
My function is the following:
import { onCall } from "firebase-functions/v2/https"; import { logger } from "firebase-functions/v2"; export const testFunction = onCall( { region: "europe-west1", }, (request) => { const commonData = { foo: "bar" } const obj1 = { data: commonData, } const obj2 = { data: commonData, } logger.debug("TEST 1", { obj1, obj2 }) } );
When calling the function (e.g. locally) it should log with the json payload:
{ "obj1": { "data": { "foo": "bar" } }, "obj2": { "data": { "foo": "bar" } }, "severity": "DEBUG", "message": "TEST 1" }
Instead it prints the following payload:
{ "obj1": { "data": { "foo": "bar" } }, "obj2": { "data": "[Circular]" }, "severity": "DEBUG", "message": "TEST 1" }
Yes, I had the same issue when viewing the logs in the log explorer.
The text was updated successfully, but these errors were encountered:
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Sorry, something went wrong.
Also seeing this issue, trying to log an object that has the same timestamp in createdAt and updatedAt.
createdAt
updatedAt
No branches or pull requests
Related issues
[REQUIRED] Version info
node: 18.19.0
firebase-functions: 4.6.0
firebase-tools: 12.9.1
firebase-admin: 11.11.0
[REQUIRED] Test case
My function is the following:
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
When calling the function (e.g. locally) it should log with the json payload:
[REQUIRED] Actual behavior
Instead it prints the following payload:
Were you able to successfully deploy your functions?
Yes, I had the same issue when viewing the logs in the log explorer.
The text was updated successfully, but these errors were encountered: