RJ
RJ2y ago

Logs not displaying in Convex dashboard for dev

I'm also seeing lots of messages in the browser console that look like this:
[CONVEX Q(_system/frontend/listModules.js:default)] [WARN] 'Missing sourceIndex for someDir/somePath.js'
[CONVEX Q(_system/frontend/listModules.js:default)] [WARN] 'Missing sourceIndex for someDir/somePath.js'
Where someDir/somePath.js is a path in the convex directory of my project.
8 Replies
Michal Srb
Michal Srb2y ago
We’re working on fixing this (removing these messages).
ballingt
ballingt2y ago
@RJ is your main issue that logs aren't displaying? and the console messages are additional information?
RJ
RJOP2y ago
Yes that's correct @ballingt!
RJ
RJOP2y ago
No description
RJ
RJOP2y ago
That's what I'm seeing I thought the browser console log messages might be related
rkbh
rkbh2y ago
@RJ got it! The source index missing log messages in the dashboard browser console are totally normal for larger projects, so is likely unrelated. The missing log stream is not expected and we'll investigate this right now
james
james2y ago
Hi @RJ the logs currently displayed in the dashboard are best effort and only stored in memory on your backend. We upgraded your instance this morning which led to the log stream getting cleared. This is an unfortunate developer experience of course. We're currently working on a persistent log stream feature (almost done!) that can keep a long-term record of logs and also direct them to third party services like DataDog. This will likely be a paid feature but we might add short-term persistent logs to free accounts in the process. Sorry about the inconvenience.
RJ
RJOP2y ago
Sure that makes sense—I didn't have higher expectations in terms of retention than what you describe is the current situation (at least for dev), so it's not a problem, it was just not clear to me that it was working at all. Either way, the persistent log stream feature you describe sounds great (especially for prod). Thanks!

Did you find this page helpful?