Changes puts statement to use rails logger for more clairity.