Firebase Functions Build Logs

1,272 views
Skip to first unread message

Sean Emmer

unread,
Aug 25, 2020, 6:36:53 PM8/25/20
to Firebase Google Group
I'm getting up and running with Firebase Functions but am not able to retrieve or view real-time logs of the build step (i.e. npm install, postinstall, etc)

My understanding is this is done via Google Cloud Builds, but when I go to the Google Cloud Builds console there is nothing in the history.

I am able to view runtime logs at Google Cloud Logs for the function in question.

Michael Bleigh

unread,
Aug 25, 2020, 7:29:33 PM8/25/20
to Firebase Google Group
If you go to the Cloud Functions panel in the Google Cloud console (https://console.cloud.google.com) and click into the detail page for your function, you should see a "build log" section with a link you can follow to view the results. This is something we can look into better incorporate with Firebase tooling in the future.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b320f416-74fe-4428-b715-01e89eff6c87n%40googlegroups.com.

Sean Emmer

unread,
Aug 26, 2020, 12:09:01 AM8/26/20
to Firebase Google Group
Maybe I'm missing something - the only option I see is to "View Logs" and this takes me to the runtime log:

Screen Shot 2020-08-25 at 5.24.49 PM.png

Sean Emmer

unread,
Aug 26, 2020, 2:23:35 PM8/26/20
to Firebase Google Group
I'm not sure if my last message went through.  I'm not seeing this anywhere on the Cloud Functions dashboard (including when viewing an individual function).  Can you provide a screenshot?

Best,
Sean

Michael Bleigh

unread,
Aug 26, 2020, 2:30:15 PM8/26/20
to Firebase Google Group
I see it in a "container build" section if you scroll down in the "General" tab.

image.png

Sean Emmer

unread,
Aug 26, 2020, 7:15:57 PM8/26/20
to fireba...@googlegroups.com
That section doesn't exist for the function I'm looking at, which was created by firebase functions.  I'm happy to provide more diagnostic details.

You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/Nm94mzd_KY0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CANPY8KURrrPWrnErRkfP%3D_tL8faxOx0hNWTb_th2pvHRV%3DLPbA%40mail.gmail.com.

Michael Bleigh

unread,
Aug 26, 2020, 7:22:25 PM8/26/20
to Firebase Google Group
Is your function Node 8 or Node 10? Only Node 10 functions will have build log details, and only when deployed within the last few days.

Sean Emmer

unread,
Aug 28, 2020, 2:54:28 PM8/28/20
to fireba...@googlegroups.com
Ah, the function is Node 12.  I do get build logs for Node 10.

Reply all
Reply to author
Forward
0 new messages