]> git.ipfire.org Git - pakfire.git/commitdiff
jobs: Pass all log messages on to the upstream logger
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 08:28:47 +0000 (08:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 08:28:47 +0000 (08:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/job.c

index a02419fc85e07b6992776e141fde3bb5ceab13e8..64caecfbb4176086c73243b625de029c972c998f 100644 (file)
@@ -629,10 +629,8 @@ static void pakfire_job_log(void* data, int priority, const char* file,
                }
        }
 
-#if 0
-       // Pass everything on to syslog
-       pakfire_log_syslog(NULL, priority, file, line, fn, format, args);
-#endif
+       // Pass everything to the upstream logger
+       pakfire_ctx_log_condition(job->ctx, priority, "%s", buffer);
 }
 
 static int pakfire_job_child(struct pakfire_job* job) {