mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 00:46:43 +00:00
Print body response when task id cannot be read
This commit is contained in:
parent
23aee14c07
commit
779303a2f7
@ -139,6 +139,11 @@ void execute_update_script(const char *script, int async, const char index_id[SI
|
||||
|
||||
if (async) {
|
||||
cJSON *task = cJSON_GetObjectItem(resp, "task");
|
||||
|
||||
if (task == NULL) {
|
||||
LOG_FATALF("elastic.c", "FIXME: Could not get task id: %s", r->body);
|
||||
}
|
||||
|
||||
LOG_INFOF("elastic.c", "User script queued: %s/_tasks/%s", Indexer->es_url, task->valuestring);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user