diff --git a/ironic_python_agent/extensions/base.py b/ironic_python_agent/extensions/base.py index 3042e5774..4b65c5c3e 100644 --- a/ironic_python_agent/extensions/base.py +++ b/ironic_python_agent/extensions/base.py @@ -162,8 +162,8 @@ class AsyncCommandResult(BaseCommandResult): self.command_error = e self.command_status = AgentCommandStatus.CLEAN_VERSION_MISMATCH self.command_result = None - LOG.info('Clean version mismatch for command %s', - self.command_name) + LOG.error('Clean version mismatch for command %s', + self.command_name) except Exception as e: LOG.exception('Command failed: %(name)s, error: %(err)s', {'name': self.command_name, 'err': e}) @@ -227,16 +227,16 @@ class ExecuteCommandMixin(object): def execute_command(self, command_name, **kwargs): """Execute an agent command.""" with self.command_lock: - LOG.info('Executing command: %(name)s with args: %(args)s', - {'name': command_name, 'args': kwargs}) + LOG.debug('Executing command: %(name)s with args: %(args)s', + {'name': command_name, 'args': kwargs}) extension_part, command_part = self.split_command(command_name) if len(self.command_results) > 0: last_command = list(self.command_results.values())[-1] if not last_command.is_done(): - LOG.info('Tried to execute %(command)s, agent is still ' - 'executing %(last)s', {'command': command_name, - 'last': last_command}) + LOG.error('Tried to execute %(command)s, agent is still ' + 'executing %(last)s', {'command': command_name, + 'last': last_command}) raise errors.CommandExecutionError('agent is busy') try: diff --git a/ironic_python_agent/extensions/clean.py b/ironic_python_agent/extensions/clean.py index 458a70255..dd77c031b 100644 --- a/ironic_python_agent/extensions/clean.py +++ b/ironic_python_agent/extensions/clean.py @@ -59,7 +59,7 @@ class CleanExtension(base.BaseAgentExtension): the step returns. """ # Ensure the agent is still the same version, or raise an exception - LOG.info('Executing clean step %s', step) + LOG.debug('Executing clean step %s', step) _check_clean_version(clean_version) if 'step' not in step: