summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-18 17:51:23 +0100
committerdefault <nobody@localhost>2022-12-18 17:51:23 +0100
commitbc7a6c2708e752663c821e129d5881087680c161 (patch)
treef7914df2ec60bfafebfd488d8d946880d19a2382
parent4cecff5432828bc65b13cb86499924f13bde8776 (diff)
Log write errors in _object_add() more prominently.
-rw-r--r--data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/data.c b/data.c
index c297625..0afe2bb 100644
--- a/data.c
+++ b/data.c
@@ -538,8 +538,10 @@ int _object_add(const char *id, d_char *obj, int ow)
}
}
}
- else
+ else {
+ srv_log(xs_fmt("object_add error writing %s (errno: %d)", fn, errno));
status = 500;
+ }
srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status));