Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Display current status and progress #2
It would be great to know how is the program doing while executing. For example, if there are too many links, the user can't know if the tool is doing good, is stuck, is close to finish, etc. I think a simple an clean way to report is the way unittest reports the execution: for eah test, a dot is sucess, F is fail, E is error. Then at the end displays an execution summary.
Well, I think logging should be left out as it is right now, and set up link checking functionality as it were doing assertions in test cases. Checking
What do you think?
pushed a commit
Oct 16, 2012
After a deep thought I decided that the dot/F/E output will be inconsistent with the other logging. At the same time I wanted to keep no output if there is no error on verbose 0 because the script is meant to be run with cron. So I just added an info message for each tested URL.