on 04-18-2024 10:16 AM
Hi Team,
We are trying to debug/check all the functions being called now we know we have the logs available on function/pods but we are not seeing any Logs there but from C4C I can see the call was made successfull.
But i am not able to see which function is being triggered, in Kyma console do we have any place where we can see all recieved messages/events/ etc?
BR
Dhruvin
Hi,
Your function needs to produce logs.
Serverless server wrapper for you function code does not produce logs on its own whenever function is called.
The easiest would be to include logs in your function code, i.e
```
console.log("Function triggered with payload", event.data)
```
Then, after function is redeployed, it will produce logs which you can inspect via kubectl
```
kubectl logs -l serverless.kyma-project.io/function-name=my-function
```
Best Regards
Krzysztof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.