From 1c9373cdb7ab5f3c6827b13f6c505482afed86a9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Feb 2025 14:37:31 +0000 Subject: [PATCH] cli: Send more stuff to the console instead of syslog Signed-off-by: Michael Tremer --- src/cli/pakfire-builder.c | 3 +++ src/cli/pakfire-client.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/cli/pakfire-builder.c b/src/cli/pakfire-builder.c index 5cc8a935..859a588c 100644 --- a/src/cli/pakfire-builder.c +++ b/src/cli/pakfire-builder.c @@ -162,6 +162,9 @@ int main(int argc, char* argv[]) { if (r) goto ERROR; + // Write logs to the console + pakfire_ctx_set_log_callback(ctx, pakfire_log_stderr, NULL); + // Setup confirm callback pakfire_ctx_set_confirm_callback(ctx, cli_confirm, NULL); diff --git a/src/cli/pakfire-client.c b/src/cli/pakfire-client.c index 4666e95d..ec848d84 100644 --- a/src/cli/pakfire-client.c +++ b/src/cli/pakfire-client.c @@ -85,6 +85,9 @@ int main(int argc, char* argv[]) { if (r) goto ERROR; + // Write logs to the console + pakfire_ctx_set_log_callback(ctx, pakfire_log_stderr, NULL); + // Setup progress callback pakfire_ctx_set_progress_callback(ctx, cli_setup_progressbar, NULL); -- 2.39.5