]> git.ipfire.org Git - pakfire.git/commitdiff
cli: pakfire: Log everything to the console by default
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 15:53:49 +0000 (15:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 15:53:49 +0000 (15:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/pakfire.c

index d60023f7d40125e196f6f396ea202811ceae2d11..7beec9d8a7941b88986332642824afb9307ca46a 100644 (file)
@@ -145,6 +145,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);
+
        // Make this all interactive
        pakfire_ctx_set_confirm_callback(ctx, cli_term_confirm, NULL);