Skip to content

Commit 65ed0fd

Browse files
authored
(torchx/cli) change the job status to print from log.info in CLI status subcommand + revert back to INFO level logging by default (#717)
1 parent 4750614 commit 65ed0fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchx/cli/cmd_status.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run(self, args: argparse.Namespace) -> None:
5252
app_status = runner.status(app_handle)
5353
filter_roles = parse_list_arg(args.roles)
5454
if app_status:
55-
logger.info(app_status.format(filter_roles))
55+
print(app_status.format(filter_roles))
5656
else:
5757
logger.error(
5858
f"AppDef: {app_id},"

torchx/cli/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def create_parser(subcmds: Dict[str, SubCommand]) -> ArgumentParser:
7878
"--log_level",
7979
type=str,
8080
help="Python logging log level",
81-
default=os.getenv("LOGLEVEL", "WARNING"),
81+
default=os.getenv("LOGLEVEL", "INFO"),
8282
)
8383
parser.add_argument(
8484
"--version",

0 commit comments

Comments
 (0)