Commit 93340974 authored by Philippe Gorley's avatar Philippe Gorley Committed by gerrit2

fix: remove log-related warnings in call.cpp

Change-Id: I5eacbab76bec2dbde8b3427b160454d9b38cd838
Reviewed-by: Guillaume Roguez's avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 4e4fb23f
......@@ -409,7 +409,8 @@ Call::addSubCall(const std::shared_ptr<Call>& call)
auto sit = this_.subcalls.find(call);
if (sit == this_.subcalls.end())
return;
RING_WARN("[call %s] DeviceCall call %s state changed %d %d", this_.getCallId().c_str(), call->getCallId().c_str(), new_state, new_cstate);
RING_WARN("[call %s] DeviceCall call %s state changed %d %d", this_.getCallId().c_str(), call->getCallId().c_str(),
static_cast<int>(new_state), static_cast<int>(new_cstate));
if (new_state == CallState::OVER) {
std::lock_guard<std::recursive_mutex> lk (this_.callMutex_);
this_.subcalls.erase(call);
......@@ -427,7 +428,7 @@ Call::addSubCall(const std::shared_ptr<Call>& call)
try {
sub->hangup(0);
} catch(const std::exception& e) {
RING_WARN("[call %s] error hanging up: %s", this_.getCallId().c_str());
RING_WARN("[call %s] error hanging up: %s", this_.getCallId().c_str(), e.what());
}
}
this_.peerHungup();
......@@ -443,11 +444,12 @@ Call::addSubCall(const std::shared_ptr<Call>& call)
this_.merge(call);
Manager::instance().peerAnsweredCall(this_);
}
RING_WARN("[call %s] Remaining %d subcalls", this_.getCallId().c_str(), this_.subcalls.size());
RING_WARN("[call %s] Remaining %d subcalls", this_.getCallId().c_str(), static_cast<int>(this_.subcalls.size()));
if (this_.subcalls.empty())
this_.pendingOutMessages_.clear();
} else {
RING_WARN("DeviceCall IGNORED call %s state changed %d %d", call->getCallId().c_str(), new_state, new_cstate);
RING_WARN("DeviceCall IGNORED call %s state changed %d %d", call->getCallId().c_str(),
static_cast<int>(new_state), static_cast<int>(new_cstate));
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment