]> git.ipfire.org Git - pakfire.git/commitdiff
build: Print debug messages as well
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 13:07:17 +0000 (13:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 13:07:17 +0000 (13:07 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/build.c

index beb129a9627e2cfd67ccbff27bdae1c244353bd3..64ce2a3999f1697278ebd9966f329beb3cfe44ac 100644 (file)
@@ -134,11 +134,6 @@ static void log_callback(void* data, int priority, const char* file, int line,
                return;
 
        switch (priority) {
-               // Print messages to standard output
-               case LOG_INFO:
-                       fprintf(stdout, "%s", buffer);
-                       break;
-
                // Highlight any warnings
                case LOG_WARNING:
                        fputs(color_yellow(), stderr);
@@ -152,6 +147,11 @@ static void log_callback(void* data, int priority, const char* file, int line,
                        fprintf(stderr, "%s", buffer);
                        fputs(color_reset(), stderr);
                        break;
+
+               // Print anything to standard output
+               default:
+                       fprintf(stdout, "%s", buffer);
+                       break;
        }
 
        // Write to the log file