Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Logging negative buys and positive sells

I was running my algo and it was working fine, when it hit the market correction in early Aug this year.

I was using this code for generating logs:

                    buy_order_id = order_target(stock,numshares)  
                    buy_order = get_order(buy_order_id)  
                    buyprice = data[stock].price  
                    if buy_order:  
                        print "Bought %s shares of %s for %s." % ((buy_order.amount), (stock.symbol), buyprice)  

The logs were working great until there were too many generated for Aug 24th:

2015-08-24PRINTSold -2081 shares of CERN for 57.57.
2015-08-24PRINTSold -3607 shares of FOX for 24.08.
2015-08-24PRINTBought 3040 shares of PGR for 28.38.
2015-08-24PRINTBought 975 shares of VNO for 88.5.
2015-08-24null:nullWARNLogging limit exceeded; some messages discarded
2015-08-24PRINTBought -964 shares of PRGO for 179.35.
2015-08-24PRINTBought -3704 shares of WMB for 46.7.
2015-08-24PRINTBought -1709 shares of AAPL for 101.2.
2015-08-24PRINTBought -7572 shares of TTM for 22.85.
2015-08-24PRINTBought -1895 shares of JNJ for 91.28.
2015-08-24PRINTBought -3886 shares of ABT for 44.52.
2015-08-24PRINTBought -47888 shares of MFG for 3.613.
2015-08-24PRINTBought -2471 shares of KHC for 70.0.
2015-08-24PRINTBought -2090 shares of HCA for 82.75.
2015-08-24PRINTBought -2314 shares of ADBE for 74.75.
2015-08-24PRINTBought -2154 shares of FB for 80.321.
2015-08-24PRINTBought -1555 shares of AMP for 111.245.

After the logging limit was exceeded once, the logs were permanently messed up for the remainder of the backtest. Is this a problem with my code, or some glitch or quirk in the IDE platform?