diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MiddleWare/test.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp index 8424aa99..016dd9d1 100644 --- a/lib/MiddleWare/test.cpp +++ b/lib/MiddleWare/test.cpp @@ -45,13 +45,15 @@ int main(int argc, char** argv) dd.SaveBinary(FILENAME_BINARYDATA1, "ass0-9as", sizeof("ass0-9as")); CMiddleWare::crash_info_t info; - middleWare.SaveDebugDump(std::string(DEBUG_DUMPS_DIR)+"/"+pid, info); - - std::cout << "Application Crashed! " << - info.m_sPackage << ": " << - info.m_sExecutable << "(" << - info.m_sCount << ")" << std::endl; + if (middleWare.SaveDebugDump(std::string(DEBUG_DUMPS_DIR)+"/"+pid, info)) + { + std::cout << "Application Crashed! " << + "(" << info.m_sTime << " [" << info.m_sCount << "]) " << + info.m_sPackage << ": " << + info.m_sExecutable << std::endl; + middleWare.Report(info.m_sUUID, info.m_sUID); + } } catch (std::string sError) { |