From 8f37915ef52a1dd2e9623c79a7913d8f650ed85d Mon Sep 17 00:00:00 2001 From: Mike Kazantsev Date: Tue, 6 Feb 2024 02:58:22 +0500 Subject: [PATCH] fix: pass -d/--log-directory command-line option from wrapper to logger process --- src/log_proxy_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log_proxy_wrapper.c b/src/log_proxy_wrapper.c index 396a04a..4c83753 100644 --- a/src/log_proxy_wrapper.c +++ b/src/log_proxy_wrapper.c @@ -64,7 +64,7 @@ void spawn_logproxy_async(const gchar *fifo_path, const gchar *log_path) { if (use_locks) { use_locks_str = "--use-locks"; } - gchar *cli = g_strdup_printf("log_proxy -s %li -t %li -S \"%s\" -n %i %s -r -f \"%s\" \"%s\"", rotation_size, rotation_time, rotation_suffix, rotated_files, use_locks_str, fifo_path, log_path); + gchar *cli = g_strdup_printf("log_proxy -s %li -t %li -S \"%s\" -d \"%s\" -n %i %s -r -f \"%s\" \"%s\"", rotation_size, rotation_time, rotation_suffix, log_directory, rotated_files, use_locks_str, fifo_path, log_path); gboolean spawn_res = g_spawn_command_line_async(cli, NULL); if (spawn_res == FALSE) { g_critical("can't spawn %s => exit", cli);