From 86a31903851c2ee9b82933aa6ba12d7ca124e54c Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 5 Oct 2016 14:45:32 -0700 Subject: [PATCH] on failure, print names of servers that didn't connect --- tools/ac-client/src/ACClientApp.cpp | 19 +++++++++++++++++++ tools/ac-client/src/ACClientApp.h | 1 + 2 files changed, 20 insertions(+) diff --git a/tools/ac-client/src/ACClientApp.cpp b/tools/ac-client/src/ACClientApp.cpp index f174f50ab6..df0f0c56ca 100644 --- a/tools/ac-client/src/ACClientApp.cpp +++ b/tools/ac-client/src/ACClientApp.cpp @@ -213,6 +213,24 @@ void ACClientApp::notifyPacketVersionMismatch() { finish(1); } +void ACClientApp::printFailedServers() { + if (!_sawEntityServer) { + qDebug() << "EntityServer"; + } + if (!_sawAudioMixer) { + qDebug() << "AudioMixer"; + } + if (!_sawAvatarMixer) { + qDebug() << "AvatarMixer"; + } + if (!_sawAssetServer) { + qDebug() << "AssetServer"; + } + if (!_sawMessagesMixer) { + qDebug() << "MessagesMixer"; + } +} + void ACClientApp::finish(int exitCode) { auto nodeList = DependencyManager::get(); @@ -230,5 +248,6 @@ void ACClientApp::finish(int exitCode) { nodeThread->quit(); nodeThread->wait(); + printFailedServers(); QCoreApplication::exit(exitCode); } diff --git a/tools/ac-client/src/ACClientApp.h b/tools/ac-client/src/ACClientApp.h index f6c726dfbc..29d571688e 100644 --- a/tools/ac-client/src/ACClientApp.h +++ b/tools/ac-client/src/ACClientApp.h @@ -38,6 +38,7 @@ private slots: private: NodeList* _nodeList; void timedOut(); + void printFailedServers(); void finish(int exitCode); bool _verbose;