Server logging during app initialization produces output only after application hot reload. #547
Open
2 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
What happened?
Logging using empirica/core/console doesn't initially print data in the console. Logs are displayed only on hot reload.
I loaded (from a file) external additional data used in my experiment and I tried to print some information on it in the console, so I see what data the current Empirica server uses.
I don't know what's the reason. As you can see below I tried to log both in the main thread as well as within a new thread.
I imagine any of these two solutions would be more than fine:
Meteor.startup()
in Empirica 1 where such logging or any time-consuming operations could be done after Empirica core server is already responsive & running.Steps To Reproduce
index.js
orcallbacks.js
Output
On adding any change to the file and saving:
Empirica Version
What OS are you seeing the problem on?
Linux (Ubuntu 22.04)
What browser are you seeing the problem on?
Does not apply
Relevant log output
No response
Anything else?
Code of Conduct
The text was updated successfully, but these errors were encountered: