Skip to content

Commit 549a780

Browse files
committed
server: fix queue
1 parent b92e61f commit 549a780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ void start_server(SDParams params) {
10721072
task_results[task_id] = pending_task_json;
10731073
}
10741074

1075-
auto task = [&req, &sd_ctx, &params, &n_prompts, task_id]() {
1075+
auto task = [req, &sd_ctx, &params, &n_prompts, task_id]() {
10761076
running_task_id = task_id;
10771077
// LOG_DEBUG("raw body is: %s\n", req.body.c_str());
10781078
sd_log(sd_log_level_t::SD_LOG_DEBUG, "raw body is: %s\n", req.body.c_str());
@@ -1097,7 +1097,7 @@ void start_server(SDParams params) {
10971097
sd_log(sd_log_level_t::SD_LOG_ERROR, "An unexpected error occurred\n");
10981098
}
10991099
// LOG_DEBUG("prompt is: %s\n", params.prompt.c_str());
1100-
sd_log(sd_log_level_t::SD_LOG_DEBUG, "prompt is: %s\n", params.lastRequest.prompt.c_str());
1100+
sd_log(sd_log_level_t::SD_LOG_INFO, "prompt is: %s\n", params.lastRequest.prompt.c_str());
11011101

11021102
if (updateCTX && sd_ctx != NULL) {
11031103
free_sd_ctx(sd_ctx);

0 commit comments

Comments
 (0)