Added fix to logging for production