Added Logging Back In

I've added logging back in, so that the script is easier to debug in production logs.