From 0825ceb561b2f52cfa253cb8bb0613896f903363 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 20:00:25 +0100 Subject: Add extensible logging API --- src/serdi.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/serdi.c') diff --git a/src/serdi.c b/src/serdi.c index 9a5495af..28cf870d 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -85,14 +85,6 @@ missing_arg(const char* const name, const char opt) return print_usage(name, true); } -static SerdStatus -quiet_error_func(void* const handle, const SerdError* const e) -{ - (void)handle; - (void)e; - return SERD_SUCCESS; -} - static SerdStatus read_file(SerdWorld* const world, SerdSyntax syntax, @@ -333,7 +325,7 @@ main(int argc, char** argv) serd_writer_new(world, output_syntax, writer_flags, env, byte_sink); if (quiet) { - serd_world_set_error_func(world, quiet_error_func, NULL); + serd_set_log_func(world, serd_quiet_log_func, NULL); } if (root_uri) { -- cgit v1.2.1