log_source.py
changeset 72 5ade0288f2ec
parent 65 8b50694f841e
child 73 5a7188bf2894
equal deleted inserted replaced
71:e909bde831e7 72:5ade0288f2ec
   356         dtz_end = dt.replace(hour=23, minute=59, second=59, microsecond=999999).astimezone(self.tz)
   356         dtz_end = dt.replace(hour=23, minute=59, second=59, microsecond=999999).astimezone(self.tz)
   357 
   357 
   358         # as dates
   358         # as dates
   359         d_begin = dtz_begin.date() 
   359         d_begin = dtz_begin.date() 
   360         d_end = dtz_end.date()
   360         d_end = dtz_end.date()
       
   361         
       
   362 #        print
       
   363 #        print "LogDirectory.get_date - %s" % dt
       
   364 #        print "\t   %s %s" % (d_begin, dtz_begin)
       
   365 #        print "\t-> %s %s" % (d_end, dtz_end)
   361 
   366 
   362         # if they're the same, just pull the full log for that date
   367         # if they're the same, just pull the full log for that date
   363         if d_begin == d_end :
   368         if d_begin == d_end :
   364             # open that log
   369             # open that log
   365             logfile = self._get_logfile_date(d_begin)
   370             logfile = self._get_logfile_date(d_begin)