Skip to content

Commit

Permalink
Print the log file after runtimeDir check
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml authored Aug 20, 2024
1 parent fc9a27c commit 21dedf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/utils/setup-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ if [ "$ZWED_NODE_LOG_FILE" != "/dev/null" ]; then
ZWED_NODE_LOG_FILE=$ZLUX_NODE_CHECK_DIR/$(basename "$ZWED_NODE_LOG_FILE")
fi

echo "${ZWED_TMP_MSGID} ZWED_NODE_LOG_FILE=${ZWED_NODE_LOG_FILE}"

if [ ! -z $(echo "${ZWED_NODE_LOG_FILE}" | grep "^${ZWE_zowe_runtimeDirectory}") ]; then
echo "${ZWED_TMP_MSGID} Logging into zowe.runtimeDirectory not allowed. Logging disabled."
ZWED_NODE_LOG_FILE=/dev/null
fi

echo "${ZWED_TMP_MSGID} ZWED_NODE_LOG_FILE=${ZWED_NODE_LOG_FILE}"

if [ ! -e $ZWED_NODE_LOG_FILE ]; then
touch $ZWED_NODE_LOG_FILE
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 21dedf5

Please sign in to comment.