eget: Status printing, do not dump stack trace if not in debug mode

This commit is contained in:
Matej Sekoranja
2013-06-10 14:24:42 +02:00
parent a831fa8a6f
commit b2d406c706
7 changed files with 58 additions and 25 deletions
+6 -6
View File
@@ -130,7 +130,7 @@ class ChannelGetRequesterImpl : public ChannelGetRequester
// show warning
if (!status.isOK())
{
std::cerr << "[" << m_channelName << "] channel get create: " << status.toString() << std::endl;
std::cerr << "[" << m_channelName << "] channel get create: " << status << std::endl;
}
// assign smart pointers
@@ -145,7 +145,7 @@ class ChannelGetRequesterImpl : public ChannelGetRequester
}
else
{
std::cerr << "[" << m_channelName << "] failed to create channel get: " << status.toString() << std::endl;
std::cerr << "[" << m_channelName << "] failed to create channel get: " << status << std::endl;
m_event.signal();
}
}
@@ -157,7 +157,7 @@ class ChannelGetRequesterImpl : public ChannelGetRequester
// show warning
if (!status.isOK())
{
std::cerr << "[" << m_channelName << "] channel get: " << status.toString() << std::endl;
std::cerr << "[" << m_channelName << "] channel get: " << status << std::endl;
}
// access smart pointers
@@ -181,7 +181,7 @@ class ChannelGetRequesterImpl : public ChannelGetRequester
}
else
{
std::cerr << "[" << m_channelName << "] failed to get: " << status.toString() << std::endl;
std::cerr << "[" << m_channelName << "] failed to get: " << status << std::endl;
{
Lock lock(m_pointerMutex);
// this is OK since caller holds also owns it
@@ -247,13 +247,13 @@ class MonitorRequesterImpl : public MonitorRequester
// TODO and exit
if (!startStatus.isSuccess())
{
std::cerr << "[" << m_channelName << "] channel monitor start: " << startStatus.toString() << std::endl;
std::cerr << "[" << m_channelName << "] channel monitor start: " << startStatus << std::endl;
}
}
else
{
std::cerr << "monitorConnect(" << status.toString() << ")" << std::endl;
std::cerr << "monitorConnect(" << status << ")" << std::endl;
}
}