-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In script/deploy_helper.py, add two functions named command_checker and setup_logger. And substitute some code with command_checker.Below are their functions: - Add command_checker function to check if a command execute successfully. If executing failed, command_checker will output error log and status code. If executing successfully, nothing will happen. - Add setup_logger function to configure the logging system. It will create a logger object and set the log level to INFO. Also, user can set the log level using --log-level option. - Replace some code like 'res=...if res!=0' with command_checker. See: #17
- Loading branch information
Showing
1 changed file
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters