Change debug to use Rails log