It only worked when logging to a file, which practically made it nonworking.
}
}
-static void default_post_handler(const struct failure_context *ctx)
+static void default_post_handler(const struct failure_context *ctx ATTR_UNUSED)
{
- if (ctx->type == LOG_TYPE_ERROR && coredump_on_error)
- abort();
}
static int ATTR_FORMAT(2, 0)
{
if (common_handler(ctx, format, args) < 0)
failure_handler.v->on_handler_failure(ctx);
+ if (ctx->type == LOG_TYPE_ERROR && coredump_on_error)
+ abort();
failure_handler.v->post_handler(ctx);
}