mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
FEAT(server): Print more details about Ice initialization errors
This commit is contained in:
parent
d274b732f1
commit
7a34ac829b
@ -34,6 +34,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
using namespace MumbleServer;
|
||||
@ -328,11 +329,9 @@ MumbleServerIce::MumbleServerIce() {
|
||||
|
||||
meta->connectListener(this);
|
||||
} catch (Ice::Exception &e) {
|
||||
#if ICE_INT_VERSION >= 30700
|
||||
qCritical("MumbleServerIce: Initialization failed: %s", qPrintable(u8(e.ice_id())));
|
||||
#else
|
||||
qCritical("MumbleServerIce: Initialization failed: %s", qPrintable(u8(e.ice_name())));
|
||||
#endif
|
||||
std::stringstream stream;
|
||||
e.ice_print(stream);
|
||||
qCritical("MumbleServerIce: Initialization failed: %s", qPrintable(u8(stream.str())));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user