adjusted rails logging