Skip to content

Commit

Permalink
fix: pass -d/--log-directory command-line option from wrapper to logg…
Browse files Browse the repository at this point in the history
…er process
  • Loading branch information
mk-fg committed Feb 5, 2024
1 parent f92cdc9 commit 8f37915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log_proxy_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f37915

Please sign in to comment.