From fb157989f1acd6501dd1ab91d69efd25f4e11683 Mon Sep 17 00:00:00 2001 From: Antonis Makropoulos Date: Tue, 18 Jun 2024 10:10:19 +0300 Subject: [PATCH] add logging messages in stop_service --- undreamai.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/undreamai.cpp b/undreamai.cpp index fd740c7..6b5d336 100644 --- a/undreamai.cpp +++ b/undreamai.cpp @@ -432,10 +432,12 @@ void LLM::start_service(){ void LLM::stop_service(){ try { + LOG_INFO("shutting down tasks", {}); ctx_server.queue_tasks.terminate(); for(int id_task:ctx_server.queue_results.waiting_task_ids) ctx_server.send_error(id_task, -1, "shutting down", ERROR_TYPE_INVALID_REQUEST); if(llama_backend_has_init) llama_backend_free(); + LOG_INFO("service stopped", {}); } catch(...) { handle_exception(); }