Skip to content

Commit

Permalink
(torchx/cli) change the job status to print from log.info in CLI stat…
Browse files Browse the repository at this point in the history
…us subcommand + revert back to INFO level logging by default (pytorch#717)
  • Loading branch information
kiukchung authored Apr 1, 2023
1 parent 4750614 commit 65ed0fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchx/cli/cmd_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def run(self, args: argparse.Namespace) -> None:
app_status = runner.status(app_handle)
filter_roles = parse_list_arg(args.roles)
if app_status:
logger.info(app_status.format(filter_roles))
print(app_status.format(filter_roles))
else:
logger.error(
f"AppDef: {app_id},"
Expand Down
2 changes: 1 addition & 1 deletion torchx/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_parser(subcmds: Dict[str, SubCommand]) -> ArgumentParser:
"--log_level",
type=str,
help="Python logging log level",
default=os.getenv("LOGLEVEL", "WARNING"),
default=os.getenv("LOGLEVEL", "INFO"),
)
parser.add_argument(
"--version",
Expand Down

0 comments on commit 65ed0fd

Please sign in to comment.