Use rails logger instead of puts.