nodes: 0, module; 1, function_definition; 2, function_name:log_initial_states; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, comment:# Raise hosts initial status broks; 8, for_statement; 9, comment:# And then services initial status broks; 10, for_statement; 11, comment:"""Raise hosts and services initial status logs
  
          First, raise hosts status and then services. This to allow the events log
          to be a little sorted.
  
          :return: None
          """; 12, identifier:elt; 13, attribute; 14, block; 15, identifier:elt; 16, attribute; 17, block; 18, identifier:self; 19, identifier:hosts; 20, expression_statement; 21, identifier:self; 22, identifier:services; 23, expression_statement; 24, call; 25, call; 26, attribute; 27, argument_list; 28, attribute; 29, argument_list; 30, identifier:elt; 31, identifier:raise_initial_state; 32, identifier:elt; 33, identifier:raise_initial_state
code: def log_initial_states(self):
          """Raise hosts and services initial status logs
  
          First, raise hosts status and then services. This to allow the events log
          to be a little sorted.
  
          :return: None
          """
          # Raise hosts initial status broks
          for elt in self.hosts:
              elt.raise_initial_state()
  
          # And then services initial status broks
          for elt in self.services:
              elt.raise_initial_state()