Error logging in transform.php