Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Extend error reporting with mast error parsing format, add @record de…
Browse files Browse the repository at this point in the history
…corator and info log level to launch

Summary: Extend error reporting with mast error parsing format, add record decorator and info log level to launch

Reviewed By: chrisxcai

Differential Revision: D29783466

fbshipit-source-id: 626679c58158f613211ab8beb174aa8e4f40411a
  • Loading branch information
aivanou authored and facebook-github-bot committed Jul 20, 2021
1 parent 68469db commit 80d5807
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions torchelastic/distributed/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@

import os

from torch.distributed.run import parse_args, run
os.environ["LOGLEVEL"] = "INFO"

# Since logger initialized during imoprt statement
# the log level should be set first
from torch.distributed.run import main as run_main


def main(args=None):
args = parse_args(args)
run(args)
run_main(args)


if __name__ == "__main__":
os.environ["LOGLEVEL"] = "INFO"
main()

0 comments on commit 80d5807

Please sign in to comment.