When running GCP Cloud Function, I don't see any logs in the console. I do see only function has been updated logs but I expect to see also function invocation logs and my function internal logs.
I tied several options and all end up with the same outcome:
For all the gen2, there were no logs also at CloudRun log console.
The code for node it is simply the default with console.info:
const functions = require('@google-cloud/functions-framework');
functions.http('helloHttp', (req, res) => {
console.info("hello from gen2")
res.send(`Hello ${req.query.name || req.body.name || 'World'}!`);
});
There are only logs regarding the Update and not from the function itself.
I see some posts about this issue has been resolved, but it I face it again.
Thanks all
I wasn't aware that there was a logging sink filtering in my project. There is an option to send logs only from specific services. At my case, Functions wasn't included.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With