Skip to content

Commit 263943c

Browse files
committed
chore: tweak logging to make it clear when there's a space
1 parent d30e0fe commit 263943c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fllama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ static void log_message(const char *message, fllama_log_callback dart_logger) {
117117
// Replace any newline characters with a placeholder
118118
size_t pos = 0;
119119
while ((pos = processed_message.find('\n', pos)) != std::string::npos) {
120-
processed_message.replace(pos, 1, " [NL] ");
121-
pos += 6; // Length of " [NL] "
120+
processed_message.replace(pos, 1, "[NL]");
121+
pos += 4; // Length of " [NL] "
122122
}
123123

124124
// Use a mutex to ensure thread safety when updating the queue

0 commit comments

Comments
 (0)