Skip to content

Commit 7ed8aaa

Browse files
committed
Fix stray closing paren in syslog tag default in bashlog.sh
Fix #451: Remove literal ")" appended to every syslog tag. The default value expression ${0##*/}) had an extra ) outside the parameter expansion braces, causing every syslog message to have a malformed tag like "tfenv-install)" instead of "tfenv-install".
1 parent fa8d238 commit 7ed8aaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/bashlog.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function log() {
2727
local file_path="${BASHLOG_FILE_PATH:-/tmp/${0##*/}.log}";
2828
local json_path="${BASHLOG_JSON_PATH:-/tmp/${0##*/}.log.json}";
2929

30-
local tag="${BASHLOG_SYSLOG_TAG:-${0##*/})}";
30+
local tag="${BASHLOG_SYSLOG_TAG:-${0##*/}}";
3131
local facility="${BASHLOG_SYSLOG_FACILITY:-local0}";
3232
local pid="${$}";
3333

0 commit comments

Comments
 (0)