Log the exception for every file