Commit 5069cc19 authored by Johan Ström's avatar Johan Ström

Exception fix in agolog_boost

Dont remember what the symptoms where..
parent cd041404
......@@ -132,9 +132,10 @@ void log_container::setOutputConsole() {
)
);
// If our output stream fails, make sure we throw exception rather than
// just stop logging
std::clog.exceptions ( std::ostream::failbit | std::ostream::badbit );
// If our output stream fails with recoverable error, make sure we throw exception
// rather than just stop logging. If it's closed however (badbit) we might as well
// ignore it since we cannot log it.
std::clog.exceptions ( std::ostream::failbit );
// Enable auto-flushing after each log record written
backend->auto_flush(true);
......
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