[Bug?]: Unformatted pino logger outputs when running yarn rw test
#11757
Labels
bug/needs-info
More information is needed for reproduction
yarn rw test
#11757
What's not working?
When running the test suite we're seeing a lot of debug outputs such as these:
I tried
yarn rw test | yarn rw-log-formatter
which i found in the RW docs. It makes these messages being formatted much more nicely. However, it also interacts too heavily with the other output of jest, leading to it's colored output and all other formatting (and also the interaction options, such as keyboard commands) being dropped.Maybe there's an option for
rw-log-formatter
to only reformat message objects containing a"level": nn
info and leave the rest untouched? Then it would be nice if that could be added by default to redwood's yarn script that starts the test suite.How do we reproduce the bug?
Good question… currently i'm not really sure what triggers these log messages as i believe they are not in our code-base, but rather coming from prisma directly.
A good start would be to use an sqlite db and watch out for those "Starting a sqlite pool" (sic!) messages.
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: