snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bc7a6c2708e752663c821e129d5881087680c161
parent 4cecff5432828bc65b13cb86499924f13bde8776
Author: default <nobody@localhost>
Date:   Sun, 18 Dec 2022 17:51:23 +0100

Log write errors in _object_add() more prominently.

Diffstat:
Mdata.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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));