]> git.ipfire.org Git - pakfire.git/commitdiff
cli: Send more stuff to the console instead of syslog
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 14:37:31 +0000 (14:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 14:37:31 +0000 (14:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/pakfire-builder.c
src/cli/pakfire-client.c

index 5cc8a935c69e965945e4ad7b3fba2b1b3f69347a..859a588c7665632a8234c22a3ea0b72e84defc05 100644 (file)
@@ -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);
 
index 4666e95dd505a3b3996e94d771ece350dc50dd5e..ec848d84e7f80efb5a09947db1f73cd10191a673 100644 (file)
@@ -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);