From: Michael Tremer Date: Tue, 4 Feb 2025 14:37:31 +0000 (+0000) Subject: cli: Send more stuff to the console instead of syslog X-Git-Tag: 0.9.30~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9373cdb7ab5f3c6827b13f6c505482afed86a9;p=pakfire.git cli: Send more stuff to the console instead of syslog Signed-off-by: Michael Tremer --- 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);