Skip to content

Commit

Permalink
Store logging filename in @logging-variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Phil Hindman committed Sep 28, 2024
1 parent 88bd8e1 commit 5fad487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/toggle_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ start_pipe_pane() {
local file=$(expand_tmux_format_path "${logging_full_filename}")
"$CURRENT_DIR/start_logging.sh" "${file}"
display_message "Started logging to ${file}"
set_logging_variable "logging"
set_logging_variable "${file}"
}

stop_pipe_pane() {
tmux pipe-pane
display_message "Ended logging to $logging_full_filename"
display_message "Ended logging to $(get_logging_variable)"
unset_logging_variable
}

Expand Down

0 comments on commit 5fad487

Please sign in to comment.