added logging to temp file on module php file