Skip to content

Commit

Permalink
Fix check for printing stdout/stderr output from load_parameter_file
Browse files Browse the repository at this point in the history
  • Loading branch information
bijoua29 committed Mar 17, 2023
1 parent bc13356 commit 9d7b3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller_manager/controller_manager/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ def main(args=None):
parameter_file=param_file,
use_wildcard=True,
)
if f_stdout:
if f_stdout.getvalue():
node.get_logger().info(bcolors.OKCYAN + f_stdout.getvalue() + bcolors.ENDC)
if f_stderr:
if f_stderr.getvalue():
node.get_logger().error(bcolors.FAIL + f_stderr.getvalue() + bcolors.ENDC)
node.get_logger().info(
bcolors.OKCYAN
Expand Down

0 comments on commit 9d7b3a2

Please sign in to comment.