Logs are different for dev and prod
I am experiencing a bug related to the new Date () but the issue is logs are not at all showing in dev env but the error log is showing in prod.
So this function is throwing an error but the error is not coming in dev environments logs but showing up in prod logs
23 Replies
My console.log is not all showing in dev logs
@Abhishek do you see anything in dev logs?
In the browser logs are shown in dev, not prod.
Where are you looking for these errors, in the Convex dashboard? In the terminal?
@ballingt so if i put console log in convex function then the logs should show in dev log of the dashboard right ?
Yes, like this
exactly but its not showing in my case
Does the "success" log entry show up?
yes
console log is not showing but conseloe debuge is showing
console.debug
?yes that show up
Do you have any filters active?
yes first thing i checked
Could you try this with a custom function in the funtion runner?
sure
one sec
Wondering if it's specific to one function or for your whole deployment
yes showing up
for custom function
but for prod env logs are coming up fine
Could you try adding a simple console.log to the top of the function where you are seeing this, like
console.log('hello')
?
oh or actually
@ballingt figured it out its function issue
say more, I'm very curious
just tested it , there was few if else caseses due to which flow was not going to console log
whereas the in prod case the if else flow is diffrent
Thanks @ballingt
ah ok, so there's nothing wrong?
sounds good
nope nothing is wrong just suffer with time and date XD