diff options
| author | 2022-12-18 17:51:23 +0100 | |
|---|---|---|
| committer | 2022-12-18 17:51:23 +0100 | |
| commit | bc7a6c2708e752663c821e129d5881087680c161 (patch) | |
| tree | f7914df2ec60bfafebfd488d8d946880d19a2382 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-bc7a6c2708e752663c821e129d5881087680c161.tar.gz snac2-bc7a6c2708e752663c821e129d5881087680c161.tar.xz snac2-bc7a6c2708e752663c821e129d5881087680c161.zip | |
Log write errors in _object_add() more prominently.
| -rw-r--r-- | data.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -538,8 +538,10 @@ int _object_add(const char *id, d_char *obj, int ow) | |||
| 538 | } | 538 | } |
| 539 | } | 539 | } |
| 540 | } | 540 | } |
| 541 | else | 541 | else { |
| 542 | srv_log(xs_fmt("object_add error writing %s (errno: %d)", fn, errno)); | ||
| 542 | status = 500; | 543 | status = 500; |
| 544 | } | ||
| 543 | 545 | ||
| 544 | srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status)); | 546 | srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status)); |
| 545 | 547 | ||