diff options
author | Danny Holman <dholman@gymli.org> | 2024-09-30 22:20:22 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-09-30 22:20:22 -0500 |
commit | c840b1da6b0ea5ebf30eb028ecce6c47bcebf88c (patch) | |
tree | 18ab3b4cb3eeb7cd2606500c4515eada62fad3ab /core/callbacks.c | |
parent | 4d46b7a69892e962ce4ddb3f7ff82e6eefb6e614 (diff) |
core: callbacks: make error_callback use log_output
Make the error_callback function use log_output rather than vanilla
printf. This unifies the engine's logging features into a single API.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'core/callbacks.c')
-rw-r--r-- | core/callbacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/callbacks.c b/core/callbacks.c index 8cda252..03b7c46 100644 --- a/core/callbacks.c +++ b/core/callbacks.c @@ -1,6 +1,6 @@ #include <rune/core/callbacks.h> -#include <stdio.h> +#include <rune/core/logging.h> void error_callback(int error, const char *desc) { - fprintf(stderr, "Error %d: %s\n", error, desc); + log_output(LOG_ERROR, "%d: %s\n", error, desc); } |