Skip to content
New issue

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

Properly escape log URL and print it at the end for functions:log command #8211

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Feb 12, 2025

At the end of functions:log, we print the URL where developers can view the full log as needed.

$  firebase functions:log
2025-02-12T18:37:01.212523Z I hellorawbody: {"structuredData":true,"message":"Hello logs!"}
2025-02-12T18:37:01.316128Z I hellorawbody:
2025-02-12T18:37:01.322816Z ? hellorawbody: RAW BODY IS undefined

2025-02-12T18:37:01.323878Z I hellorawbody: {"structuredData":true,"message":"Hello logs!"}
2025-02-12T18:37:01.427900Z W hellorawbody:
2025-02-12T18:37:01.494996Z W hellorawbody:

See full logs at: https://console.developers.google.com/logs/viewer?advancedFilter=resource.type=%22cloud_function%22+OR+%28resource.type%3D%22cloud_run_revision%22+AND+labels.%22goog-managed-by%22%3D%22cloudfunctions%22%29&project=<REDACTED>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant