summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-11-07 19:00:30 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-11-07 19:01:38 +0100
commit55179decb79c7bf02662b8287efdd948cf006e94 (patch)
tree943d0fa683f092b39c1e306f133311b071794093 /src/client.c
parent1fd62a4850f6e1cb16fb7c333d884660fb08d75b (diff)
client: improve error reporting for image creation reponsev1.2.5-25
provide a bit more information in the logs to identify the error
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index 817a9c0..7e787e4 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1120,14 +1120,16 @@ static int og_resp_image_create(json_t *data, struct og_client *cli)
soft_legacy.center);
if (!res) {
og_dbi_close(dbi);
- syslog(LOG_ERR, "Problem updating client configuration\n");
+ syslog(LOG_ERR, "Problem updating software inventory (%s:%u)\n",
+ __FILE__, __LINE__);
return -1;
}
res = og_dbi_update_image(dbi, &img_legacy, soft_legacy.id);
if (!res) {
og_dbi_close(dbi);
- syslog(LOG_ERR, "Problem updating client configuration\n");
+ syslog(LOG_ERR, "Problem updating image (%s:%u)\n",
+ __FILE__, __LINE__);
return -1;
}
@@ -1137,7 +1139,8 @@ static int og_resp_image_create(json_t *data, struct og_client *cli)
og_dbi_close(dbi);
if (res) {
- syslog(LOG_ERR, "Problem updating image info\n");
+ syslog(LOG_ERR, "Problem updating image (%s:%u)\n",
+ __FILE__, __LINE__);
return -1;
}