Refactoring of the cli app module

Logging strings use format function.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ic380f878ed6a583ca1a32fc9b641535d868d6692
This commit is contained in:
Jiri Podivin 2021-05-27 11:43:49 +02:00 committed by Gael Chamoulaud
parent 0f00fd79f9
commit 6ce045049d
1 changed files with 5 additions and 3 deletions

View File

@ -41,12 +41,14 @@ class ValidationCliApp(App):
self.LOG.debug('Initialize Validation App.')
def prepare_to_run_command(self, cmd):
self.LOG.debug('prepare_to_run_command %s', cmd.__class__.__name__)
self.LOG.debug(
'prepare_to_run_command {}'.format(cmd.__class__.__name__))
def clean_up(self, cmd, result, err):
self.LOG.debug('clean_up %s', cmd.__class__.__name__)
self.LOG.debug(
'clean_up {}'.format(cmd.__class__.__name__))
if err:
self.LOG.debug('got an error: %s', err)
self.LOG.debug('got an error: {}'.format(err))
def main(argv=sys.argv[1:]):