Hi, I'm following the bootcamp and I have a question. 

It is about the code below


# region imports
from AlgorithmImports import *
# endregion

class T07LiquidUniverseSelection04BuildingOurPortfolio(QCAlgorithm):

   filtered_by_price = None
   
   def initialize(self):
       # Locally Lean installs free sample data, to download more data please visit https://www.quantconnect.com/docs/v2/lean-cli/datasets/downloading-data
       self.set_start_date(2019, 1,11)  # Set Start Date
       self.set_end_date(2019, 7, 1)  # Set End Date
       self.set_cash(100000)  # Set Strategy Cash
       self.add_universe(self.coarse_selection_filter)
       self.universe_settings.resolution = Resolution.Daily

   def coarse_selection_filter(self,coarse):
       sorted_by_daily_dollar_volume = sorted(coarse, key=lambda c: c.dollar_volume, reverse=True)
       symbols_by_price = [c.symbol for c in sorted_by_daily_dollar_volume if c.price > 10]
       self.filtered_by_price =symbols_by_price[:8]
       return self.filtered_by_price        

   def on_securities_changed(self, changes):
       self.changes=changes
       self.log(f"on_securities_changed({self.time}):: (changes)")
       # self.log(f"{self.changes}")        

       for security in changes.removed_securities:
           self.debug(f"{self.time}: Removed {security.symbol}")
           if security.invested:
               self.liquidate(security.symbol)

       for security in changes.added_securities:
           self.debug(f"{self.time}: Added {security.symbol}")
           self.set_holdings(security.symbol, 0.1)                


 

in this example, it seems to me that the code initialize my portfolio in on_securities_changed. However, when I look at the log.txt file after the backtest, I found a behavior I don't understand. When it add the equity from the last three lines, it doesn't print out the log message on top (self.log(f"on_securities_changed({self.time}):: (changes)")) before initializing my portfolio. This is hard to understand to me.