ghettoVCB icon indicating copy to clipboard operation
ghettoVCB copied to clipboard

error level is not written to log

Open ojehle opened this issue 5 years ago • 0 comments

error level for snapshot already exists is not written to the console or log

diff --git a/ghettoVCB.sh b/ghettoVCB.sh index c8bd331..09ffcef 100755 --- a/ghettoVCB.sh +++ b/ghettoVCB.sh @@ -221,7 +221,7 @@ logger() { LOG_TYPE=$1 MSG=$2

  • if [[ "${LOG_LEVEL}" == "debug" ]] && [[ "${LOG_TYPE}" == "debug" ]] || [[ "${LOG_TYPE}" == "info" ]] || [[ "${LOG_TYPE}" == "dryrun" ]]; then
  • if [[ "${LOG_LEVEL}" == "debug" ]] && [[ "${LOG_TYPE}" == "debug" ]] || [[ "${LOG_TYPE}" == "info" ]] || [[ "${LOG_TYPE}" == "dryrun" ]] || [[ "${LOG_TYPE}" == "error" ]]; then TIME=$(date +%F" "%H:%M:%S) if [[ "${LOG_TO_STDOUT}" -eq 1 ]] ; then echo -e "${TIME} -- ${LOG_TYPE}: ${MSG}"

ojehle avatar Oct 26 '20 14:10 ojehle