fix laptop

v1
Brett 2024-09-20 12:49:24 -04:00
parent 39fd5a73d6
commit b5ea7a1e15
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.20.13) set(BLT_VERSION 0.20.14)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -632,8 +632,9 @@ namespace blt::logging {
void log_stream_internal(const std::string& str, const logger& logger) { void log_stream_internal(const std::string& str, const logger& logger) {
auto& s = loggingStreamLines[std::this_thread::get_id()][logger.level]; auto& s = loggingStreamLines[std::this_thread::get_id()][logger.level];
s += str; // s += str;
for (char c : str){ for (char c : str){
s += c;
if (c == '\n'){ if (c == '\n'){
log(s, logger.level, logger.file, logger.line); log(s, logger.level, logger.file, logger.line);
s = ""; s = "";