def emit_init_log(self, logger, include_debug):
        """Writes any logged information the controller has collected about the initialization of the agent_service
        to the provided logger.

        This is required because the initialization sequence occurs before the agent log is set up to write to
        a file instead of standard out.  Using this, we can collect the information and then output it once the
        logger is set up.

        @param logger: The logger to use to write the information.
        @param include_debug:  If True, include debug level logging as well.
        @type logger: Logger
        @type include_debug: bool
        """
        logger.info(scalyr_util.get_pid_tid() % 'Emitting log lines saved during initialization: %s')
        for line_entry in self.__init_log_lines:
            if not line_entry[1] or include_debug:
                logger.info('     %s' % line_entry[0])

        if include_debug:
            logger.info('Parent pids:')
            current_child = os.getpid()
            current_parent = self.__get_ppid(os.getpid())

            remaining_parents = 10
            while current_parent is not None and remaining_parents > 0:
                if _can_read_command_line(current_parent):
                    logger.info('    ppid=%d cmd=%s parent_of=%d' % (current_parent,
                                                                     _read_command_line(current_parent),
                                                                     current_child))
                else:
                    logger.info('    ppid=%d cmd=Unknown parent_of=%d' % (current_parent, current_child))
                current_child = current_parent
                current_parent = self.__get_ppid(current_parent)
                remaining_parents -= 1
        return
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_posix.py/PosixPlatformController.emit_init_log/swapped operands of `%`