diff options
author | nirav <nirav@teisuu.com> | 2019-03-17 10:16:18 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2019-03-17 10:16:18 +0530 |
commit | 72cedecbbfa6b17b444edf5943dce2ecc307a340 (patch) | |
tree | 8e49a2ffd4b4f615d99d299ea294f6a5e00ffa8d /src/instance_info.c | |
parent | 63e8c7f9d095fe0b1e0b44f950230c0e238f166d (diff) | |
download | ap_client-72cedecbbfa6b17b444edf5943dce2ecc307a340.tar.gz ap_client-72cedecbbfa6b17b444edf5943dce2ecc307a340.zip |
Fix log_msg
Diffstat (limited to 'src/instance_info.c')
-rw-r--r-- | src/instance_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/instance_info.c b/src/instance_info.c index 7b9326e..3c13ebd 100644 --- a/src/instance_info.c +++ b/src/instance_info.c @@ -15,20 +15,20 @@ struct instance_info *instance_info_from_json(char *json_data) root = json_loads(json_data, 0, &error); if (!root) { - log_msg(LOG_ERROR, "instance_info_from_json", "error: on line %d: %s", + log_msg(LOG_WARNING, "instance_info_from_json", "error: on line %d: %s", error.line, error.text); return NULL; } if (!json_is_object(root)) { - log_msg(LOG_ERROR, "instance_info_from_json", "root is not object"); + log_msg(LOG_WARNING, "instance_info_from_json", "root is not object"); json_decref(root); return NULL; } json_t *title = json_object_get(root, "title"); if (!json_is_string(title)) { - log_msg(LOG_ERROR, "instance_info_from_json", "title is not string"); + log_msg(LOG_WARNING, "instance_info_from_json", "title is not string"); return NULL; } info->title = strdup(json_string_value(title)); |