Log write errors in _object_add() more prominently.

This commit is contained in:
default 2022-12-18 17:51:23 +01:00
parent 4cecff5432
commit bc7a6c2708

4
data.c
View File

@ -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; status = 500;
}
srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status)); srv_debug(1, xs_fmt("object_add %s %s %d", id, fn, status));