race condition at server.SetLogger fixed