Skip to content

Commit c2854b2

Browse files
author
Phil Hindman
committed
Ensure that 'start logging' displays correct filename
Previously the filename was calculated twice: first when opening the file, and then when displaying the message. There is a small chance that the time would change between those two events, causing the displayed filename to be incorrect. This change calculates the name once and then uses that name in both places.
1 parent b5c5f7b commit c2854b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/toggle_logging.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source "$CURRENT_DIR/shared.sh"
99
start_pipe_pane() {
1010
local file=$(expand_tmux_format_path "${logging_full_filename}")
1111
"$CURRENT_DIR/start_logging.sh" "${file}"
12-
display_message "Started logging to ${logging_full_filename}"
12+
display_message "Started logging to ${file}"
1313
}
1414

1515
stop_pipe_pane() {

0 commit comments

Comments
 (0)