Move logging calls to after logger is set up