From 7e3b260f4f03b46af895333eb65b05fbd858a9cc Mon Sep 17 00:00:00 2001 From: Lennart Austenfeld Date: Wed, 22 Oct 2025 21:35:00 +0200 Subject: [PATCH] Reduce log level of a debug message leaking prompt contents --- tools/server/server.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/server/server.cpp b/tools/server/server.cpp index 8737fba124d50..d9bb5136303b7 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -3818,7 +3818,7 @@ struct server_context { // when the prompt prefix does not match, print the tokens around the mismatch // this is useful for debugging prompt caching - { + if (GGML_LOG_LEVEL_DEBUG <= common_log_verbosity_thold) { const int np0 = std::max(slot.n_past - 4, 0); const int np1 = std::min(slot.n_past + 6, std::min(slot.prompt.tokens.size(), slot.task->tokens.size())); @@ -3852,11 +3852,11 @@ struct server_context { } } - SLT_WRN(slot, "%s\n", ss0.str().c_str()); - SLT_WRN(slot, "%s\n", ss1.str().c_str()); + SLT_DBG(slot, "%s\n", ss0.str().c_str()); + SLT_DBG(slot, "%s\n", ss1.str().c_str()); - SLT_WRN(slot, "%s\n", st0.str().c_str()); - SLT_WRN(slot, "%s\n", st1.str().c_str()); + SLT_DBG(slot, "%s\n", st0.str().c_str()); + SLT_DBG(slot, "%s\n", st1.str().c_str()); } if (pos_min > pos_min_thold) {