cmds and lib: Don't print() log messages
print() should be used to output information requested by a certain command, but not for logging the process to achieve it. log() should be used for the latter. The current code has the distinction not down clearly, fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
27bf98f747
commit
9b6ec109a1
3 changed files with 13 additions and 13 deletions
|
|
@ -19,6 +19,6 @@ class CmdCheck(Cmd): # export
|
|||
async def _run(self, args: Namespace) -> None:
|
||||
path = self.app.find_circular_deps(args.module, args.flavour)
|
||||
if path:
|
||||
print(f'Found circular dependency in flavour {args.flavour}:', ' -> '.join(path))
|
||||
log(NOTICE, f'Found circular dependency in flavour {args.flavour}:', ' -> '.join(path))
|
||||
exit(1)
|
||||
print(f'No circular dependency found for flavour {args.flavour} in modules:', ' '.join(args.module))
|
||||
log(NOTICE, f'No circular dependency found for flavour {args.flavour} in modules:', ' '.join(args.module))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue