Skip to content

Commit 5fad487

Browse files
author
Phil Hindman
committed
Store logging filename in @logging-variable
Since the string stored in @logging-variable can be arbitrary, let's store the filename there, so that we can display the correct name when we stop logging.
1 parent 88bd8e1 commit 5fad487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/toggle_logging.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ start_pipe_pane() {
1010
local file=$(expand_tmux_format_path "${logging_full_filename}")
1111
"$CURRENT_DIR/start_logging.sh" "${file}"
1212
display_message "Started logging to ${file}"
13-
set_logging_variable "logging"
13+
set_logging_variable "${file}"
1414
}
1515

1616
stop_pipe_pane() {
1717
tmux pipe-pane
18-
display_message "Ended logging to $logging_full_filename"
18+
display_message "Ended logging to $(get_logging_variable)"
1919
unset_logging_variable
2020
}
2121

0 commit comments

Comments
 (0)