Blueshift | print logs restriction

Hi,



I see that there is a restriction in how much print logs you can get on the console.

Given that apart form print there is no other way to debug code it will be really helpful if the number of print logs limit could be set to a user defined value. Is there a way to do that?



Also, I would also like to know why have you imposed this restriction?



Thanks,

Neel 

Hmm, this is a bit tricky I understand. These prints are streamed to your browser and/or saved as logs in the backtest page so that later you can fetch it. If the size of the print is very large, it can seriously degrade the performance. Print are user generated contents and the platform has no direct control on it. It can become a vulnerability in the wrong hands, if not restricted. This is similar to how say a social media app restricts the size of the image or videos you can upload. Having this limit set by the user kind of defeats the whole purpose of a limit!



On the other hand, there is no other debugging method except using print statements as of now. That is why we have set the limit to a relatively high threshold. If you are using print for debugging and using it judiciously, you should not have a problem. Even if you are printing once per minute for an intraday strategy (which you should not, ideally you should use print for debugging conditionally) you should be covered for 2 or 3 full trading days. In case you are facing specific problems, try to see if you are using print for debugging wisely? Else please feel free to reach out to us if you need further help.