Skip to content

Commit

Permalink
Merge pull request #4063 from zowe/v2.x/zweLogging
Browse files Browse the repository at this point in the history
V2: Check log directory
  • Loading branch information
MarkAckert authored Nov 4, 2024
2 parents ecc8abe + d655b17 commit f9336bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to the Zowe Installer will be documented in this file.
<!--Add the PR or issue number to the entry if available.-->

## `2.18.1`
- Bugfix: When `--log-dir` parameter for `zwe` command is a file, there might be an error "InternalError: stack overflow". [#40nn](https://github.com/zowe/zowe-install-packaging/pull/40nn)
- Bugfix: Error message `ZWEL0141E` did not print user ID. [#3971](https://github.com/zowe/zowe-install-packaging/pull/3971)

## `2.17.0`
Expand Down
3 changes: 3 additions & 0 deletions bin/libs/logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
export ZWE_PRIVATE_LOG_FILE=

prepare_log_file() {
if [ -f "${1}" ]; then
print_error_and_exit "Error ZWEL0102E: Invalid parameter --log-dir=${1} (not a directory)" "" 102
fi
# use absolute path to make sure we can always write to correct location even
# if other scripts changed current working directory
log_dir=$(convert_to_absolute_path "${1}" | remove_trailing_slash)
Expand Down

0 comments on commit f9336bf

Please sign in to comment.