Code refactoring for log broken links
Code refactoring