From 468f7dc4294905d19f55c58c47ba91cd23bf357b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 20:00:25 +0100 Subject: WIP: Add extensible logging API --- src/reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index ba3559bc..b7e18d2a 100644 --- a/src/reader.c +++ b/src/reader.c @@ -35,8 +35,8 @@ r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...) { va_list args; va_start(args, fmt); - const SerdError e = {st, &reader->source->cur, fmt, &args}; - serd_world_error(reader->world, &e); + serd_world_vlogf_internal( + reader->world, st, SERD_LOG_LEVEL_ERR, &reader->source->cur, fmt, args); va_end(args); return st; } -- cgit v1.2.1