diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-10 15:16:48 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-10 15:16:48 -0400 |
| commit | aff64937000fbce5c55b49bee98f0120e09e399e (patch) | |
| tree | 610b1ba44c4da1cb9581a9bd6e742f188967b2f1 /src/lib/delivery | |
| parent | 0ef06cbec6f3796db244501b4c5fec2d579c7e5b (diff) | |
| download | stasis-aff64937000fbce5c55b49bee98f0120e09e399e.tar.gz | |
Implement logging facility WARN, INFO, DEBUG
* The original macros have been updated
* Default log level is WARN
* Log level increases per `-v` CLI argument
* Tests always use DEBUG level
Diffstat (limited to 'src/lib/delivery')
| -rw-r--r-- | src/lib/delivery/delivery_test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/delivery/delivery_test.c b/src/lib/delivery/delivery_test.c index 5d5a3e8..119fe95 100644 --- a/src/lib/delivery/delivery_test.c +++ b/src/lib/delivery/delivery_test.c @@ -18,9 +18,7 @@ struct Tests *tests_init(const size_t num_tests) { int tests_add(struct Tests *tests, struct Test *x) { if (tests->num_used >= tests->num_alloc) { -#ifdef DEBUG const size_t old_alloc = tests->num_alloc; -#endif struct Test **tmp = realloc(tests->test, tests->num_alloc++ * sizeof(**tests->test)); SYSDEBUG("Increasing size of test array: %zu -> %zu", old_alloc, tests->num_alloc); if (!tmp) { |
