Fixing logging; less ugly and more production-ready.