Skip to content

Commit

Permalink
Merge pull request #4064 from zowe/v3.x/zweLogging
Browse files Browse the repository at this point in the history
V3: Check log directory
  • Loading branch information
MarkAckert authored Nov 4, 2024
2 parents 01a399c + baa7a98 commit 7c70368
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 @@ -3,6 +3,7 @@
All notable changes to the Zowe Installer will be documented in this file.

## `3.0.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)
- Enhancement: new javascript funtion `getStatvfs()` to obtain information about the file sysytem [#3994](https://github.com/zowe/zowe-install-packaging/pull/3994)

## `3.0.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 7c70368

Please sign in to comment.