#region imports
from AlgorithmImports import *
# First 30 minutes Highest High and Lowest Low

# -------------------------
# -------------------------

class OpeningRangeBreakout(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2021, 12, 6)  
        self.SetEndDate(2021, 12, 10) 
        self.stock = self.AddEquity(STOCK, Resolution.Minute).Symbol
        self.max = self.MAX(self.stock, PERIOD, Resolution.Minute, Field.High)
        self.min = self.MIN(self.stock, PERIOD, Resolution.Minute, Field.Low)
        self.SetWarmUp(PERIOD, Resolution.Minute)

    def OnData(self, data):
        if self.IsWarmingUp: return
        if not (self.max.IsReady or self.mi.IsReady): return
        if self.Time.hour < 10 or self.Time.hour > 10 or self.Time.minute != 31: return

        first_30_min_HH = self.max.Current.Value
        first_30_min_LL = self.min.Current.Value

        self.Log(f"first 30 min Highest High: {first_30_min_HH}")
        self.Log(f"first 30 min Lowest Low: {first_30_min_LL}")
        self.Plot(STOCK, 'first_30_min_HH', first_30_min_HH)

I am trying to print a log message with the code above.

But the result of the console window after running Backtest is as follows.

No log messages(        self.Log(f"first 30 min Highest High: {first_30_min_HH}")
                                 self.Log(f"first 30 min Lowest Low: {first_30_min_LL}")

)are printed. Please help me what to do in this case