Skip to content

Commit

Permalink
FEAT(server): Print more details about Ice initialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Dec 24, 2024
1 parent 6969661 commit bcdeee6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/murmur/MumbleServerIce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <cassert>
#include <limits>
#include <sstream>

using namespace std;
using namespace MumbleServer;
Expand Down Expand Up @@ -303,11 +304,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())));
}
}

Expand Down

0 comments on commit bcdeee6

Please sign in to comment.