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/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 78de1ad3..2eea3919 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -83,14 +83,6 @@ missing_arg(const char* name, 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, @@ -310,7 +302,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_world_set_log_func(world, serd_quiet_error_func, NULL); } SerdNode* root = serd_new_uri(SERD_MEASURE_STRING(root_uri)); -- cgit v1.2.1