Very large stacktraces making the CLI unresponsive

Hello,

Not a huge deal but I wanted to flag it anyway, when using the Shopify CLI to serve POS extensions locally sometimes exception stacktraces is so large (+3MB) that it results in an unresponsive CLI for a time. For example it doesn’t respond to the shortcut keys like (q) quit, (p) preview, etc.

This is just a guess but I believe the CLI is trying to apply some highlighting to the huge amount of text that it shows in the logs and this is what is slowing things up?

Here is an example of a stacktrace that is large, this also shows up in the CLI logs and results in the behaviour explained above:

Another quick point I’ll make while we are on the subject of stacktraces, they are very hard to read when troubleshooting in dev, can anything be done about this?

Thanks.

Hey @simon_b thanks for flagging this, can’t guarantee anything, but I’ll pass this along internally and loop back with you here once I have more info :slight_smile:

Thanks @Alan_G assuming the issue is caused by what I think it is (the CLI logging) perhaps we could get an option to disable the POS logging in the CLI output?

Cheers!

Simon.