Deploy Preview Function Logs not available?

Hey all, I’ve found I can’t see/access functions and their logs when deploying a preview with Netlify CLI.

I deploy with netlify deploy, then go to the Netlify dashboard.

I can’t see the functions & logs from my production site, but there are no functions/logs for my Deploy Preview, which is labeled as “Deploy Preview #null

Is there another way to review logging on functions deployed via netlify cli?



Environment Info │

OS: macOS 10.15.5
CPU: (4) x64 Intel® Core™ i5-5287U CPU @ 2.90GHz
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Chrome: 83.0.4103.97
Firefox: 76.0.1
Safari: 13.1.1
netlify-cli: 2.52.0

netlify-cli/2.52.0 darwin-x64 node-v12.16.2

Hi @question_asker, what was the exact command you used to deploy that got you a #null? Also, have you tried using --alias and see if that works to let you access your function logs. Hope that helps.

I used yarn build ; netlify deploy --prod.

I have tried using --alias, but Netlify CLI reported it’s an invalid argument?

Could you tell us the deploy ID (last characters in the path - hex string) for a deploy that you assert has functions, but no logs? We’ll want to examine in our database.

Only the latest CLI release, from 8 days ago, will have the --alias flag:

I am having the same problem. The list of deploys says Deploy Preview #null. The site has 3 functions. Deploy ID 5efbac35adbfff01ec423650, from today.

Hi @question_asker and @Sensibleish,
I’ve done some digging in several of your deploy logs, our database logs, and our internal issue trackers.

Unfortunately, it does seem impossible at this time to view function logs of manual deploys. You are also running into another issue which is that we currently only show function information and logs for functions on the current HEAD branch. There are ongoing discussions and several open issues about this internally, but the only thing I can recommend for you to have more visibility into your functions today is to deploy from a repo.

@Sensibleish, it seems like you did switch back from deploying manually to deploying from a repo- were you able to see function logs when you did that?