diff options
| author | 2023-12-11 10:41:41 +0100 | |
|---|---|---|
| committer | 2023-12-11 10:41:41 +0100 | |
| commit | bfdaf380eae4358b88d215a7bc1310fbd12b9e5e (patch) | |
| tree | 51824940b3cefbe343e637cbce5fa216d207e96e /data.c | |
| parent | Revert "Reverted actor_request() without user." (diff) | |
| download | snac2-bfdaf380eae4358b88d215a7bc1310fbd12b9e5e.tar.gz snac2-bfdaf380eae4358b88d215a7bc1310fbd12b9e5e.tar.xz snac2-bfdaf380eae4358b88d215a7bc1310fbd12b9e5e.zip | |
More logging tweaks.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 12 |
1 files changed, 8 insertions, 4 deletions
| @@ -649,10 +649,14 @@ int _object_add(const char *id, const xs_dict *obj, int ow) | |||
| 649 | xs *fn = _object_fn(id); | 649 | xs *fn = _object_fn(id); |
| 650 | FILE *f; | 650 | FILE *f; |
| 651 | 651 | ||
| 652 | if (!ow && mtime(fn) > 0.0) { | 652 | if (mtime(fn) > 0.0) { |
| 653 | /* object already here */ | 653 | if (!ow) { |
| 654 | srv_debug(1, xs_fmt("object_add object already here %s", id)); | 654 | /* object already here */ |
| 655 | return 204; /* No content */ | 655 | srv_debug(1, xs_fmt("object_add object already here %s", id)); |
| 656 | return 204; /* No content */ | ||
| 657 | } | ||
| 658 | else | ||
| 659 | status = 200; | ||
| 656 | } | 660 | } |
| 657 | 661 | ||
| 658 | if ((f = fopen(fn, "w")) != NULL) { | 662 | if ((f = fopen(fn, "w")) != NULL) { |