Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Log stack trace lines separately to retain formatting

Jason Bosco4e8b6613dc91
diff --git a/include/backward.hpp b/include/backward.hpp
index c5fe0a68..3c418d48 100644
--- a/include/backward.hpp
+++ b/include/backward.hpp
@@ -4189,7 +4189,12 @@ private:
Printer printer;
printer.address = true;
//printer.print(st, stderr);
- printer.print(st, LOG(ERROR));
+
+ std::stringstream error_lines;
+ printer.print(st, error_lines);
+ for(std::string line; std::getline(error_lines, line);) {
+ LOG(ERROR) << line;
+ }
#if _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
psiginfo(info, nullptr);