broke out logging init and only enable in prod