diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-27 10:00:20 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-27 10:00:20 -0400 |
commit | c59871a5018927836af991799022c2831cdccb5d (patch) | |
tree | 6ea2522ae8a2418315a5d08bc04005bbde7fad37 | |
parent | 1ce4673c7c0151f69c2c35984633b6c9512ce97f (diff) | |
download | stasis-c59871a5018927836af991799022c2831cdccb5d.tar.gz |
"Task started" message is redundant
-rw-r--r-- | src/multiprocessing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 3c3c5eb..1bd9ec0 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -25,7 +25,8 @@ int child(struct MultiProcessingPool *pool, struct MultiProcessingTask *task) { // Redirect stdout and stderr to the log file fflush(stdout); fflush(stderr); - printf("[%s:%s] Task started (pid: %d)\n", pool->ident, task->ident, task->parent_pid); + // Set log file name + sprintf(task->log_file + strlen(task->log_file), "task-%zu-%d.log", mp_global_task_count, task->parent_pid); fp_log = freopen(task->log_file, "w+", stdout); if (!fp_log) { fprintf(stderr, "unable to open '%s' for writing: %s\n", task->log_file, strerror(errno)); |