diff --git a/src/BackendManager.hpp b/src/BackendManager.hpp index 2090a8f..beb51da 100644 --- a/src/BackendManager.hpp +++ b/src/BackendManager.hpp @@ -2,6 +2,7 @@ #include #include "log.h" +#include #include namespace liblloyal_node { @@ -46,7 +47,11 @@ class BackendManager { resolveBackends(); #endif llama_backend_init(); - common_log_set_verbosity_thold(LOG_DEFAULT_LLAMA); + // Verbosity threshold is env-overridable (LLOYAL_LLAMA_VERBOSITY) so llama.cpp's + // per-context KV / compute-buffer allocation lines can be surfaced on demand; + // defaults to the shipped level when the env var is unset. + const char* verbEnv = std::getenv("LLOYAL_LLAMA_VERBOSITY"); + common_log_set_verbosity_thold(verbEnv ? std::atoi(verbEnv) : LOG_DEFAULT_LLAMA); llama_log_set(common_log_default_callback, nullptr); }