Fix format of warnings from the packaging check command

This commit is contained in:
Éric Araujo 2011-06-02 14:54:44 +02:00
parent 78af7d8392
commit 8c86ecdab5
2 changed files with 12 additions and 1 deletions

View file

@ -32,7 +32,7 @@ class check(Command):
# XXX we could use a special handler for this, but would need to test
# if it works even if the logger has a too high level
self._warnings.append((msg, args))
return logger.warning(self.get_command_name() + msg, *args)
return logger.warning('%s: %s' % (self.get_command_name(), msg), *args)
def run(self):
"""Runs the command."""