]> git.sesse.net Git - casparcg/blobdiff - common/log.cpp
[win32] Give the server a tiny hope of recovering from a stack overflow bug. Still...
[casparcg] / common / log.cpp
index b6488739dffac300eb56ea85a2b9d12e445f312d..55ee3406cc4389f0d7e25e5d28d34b4d48cbda1f 100644 (file)
@@ -163,6 +163,16 @@ void init()
        boost::log::core::get()->add_sink(stream_sink);
 }
 
+std::string current_exception_diagnostic_information()
+{
+       auto e = boost::current_exception_cast<const char*>();
+
+       if (e)
+               return std::string("[char *] = ") + *e + "\n";
+       else
+               return boost::current_exception_diagnostic_information();
+}
+
 }
 
 void add_file_sink(const std::wstring& file, const boost::log::filter& filter)