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

Flush console logging since buffering makes it seem like it does not work.

Kishore Nallan5a96e98054f5
diff --git a/include/logger.h b/include/logger.h
index daaaa151..cf5f8a4a 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -18,9 +18,9 @@ struct ConsoleLoggingSink {
if (level.value >= ERR.value) {
std::cerr << "\033[" << RED << "m"
- << logEntry.get().toString() << "\033[m";
+ << logEntry.get().toString() << "\033[m" << std::flush;
} else {
- std::cout << logEntry.get().toString();
+ std::cout << logEntry.get().toString() << std::flush;
}
}
};
\ No newline at end of file