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
Same problem was seen in firebase/firebase-functions#1510 for JS/TS
from firebase_functions import https_fn from firebase_functions import logger @https_fn.on_request() def on_request_example(req: https_fn.Request) -> https_fn.Response: common_data = {"foo": "bar"} obj1 = { "data": common_data, } obj2 = { "data": common_data, } logger.debug("TEST 1", {"obj1": obj1, "obj2": obj2}) return https_fn.Response("Oki doki")
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:
CorieW
Successfully merging a pull request may close this issue.
Same problem was seen in firebase/firebase-functions#1510 for JS/TS
Test case
Steps to reproduce
Expected behavior
When calling the function (e.g. locally) it should log with the json payload:
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: