Fixed the logs dir not exists exception issue
Update the code comments