Corrected codes to throw exception for a null path and changed logging
level as suggested.