Updated async_logger flush
This commit is contained in:
		@@ -141,7 +141,6 @@ int main(int argc, char *argv[])
 | 
			
		||||
        perror("Last error");
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -75,6 +75,13 @@ SPDLOG_INLINE void spdlog::async_logger::backend_sink_it_(const details::log_msg
 | 
			
		||||
 | 
			
		||||
SPDLOG_INLINE void spdlog::async_logger::backend_flush_()
 | 
			
		||||
{
 | 
			
		||||
    spdlog::logger::flush_();
 | 
			
		||||
    for (auto &sink : sinks_)
 | 
			
		||||
    {
 | 
			
		||||
        SPDLOG_TRY
 | 
			
		||||
        {
 | 
			
		||||
            sink->flush();
 | 
			
		||||
        }
 | 
			
		||||
        SPDLOG_LOGGER_CATCH()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user