Few logging levels changed

I want to return a valid explanation for log level REQ for why the script stops.
This commit is contained in:
Søren Theilgaard
2022-02-21 16:47:57 +01:00
parent a3dbf75818
commit 9fd2b87e3c
3 changed files with 9 additions and 10 deletions

View File

@@ -150,7 +150,7 @@ if [[ -n $appNewVersion ]]; then
printlog "notifying"
displaynotification "$message" "No update for $name!"
fi
cleanupAndExit 0 "No newer version." WARN
cleanupAndExit 0 "No newer version." REQ
fi
else
printlog "DEBUG mode 1 enabled, not exiting, but there is no new version of app." WARN
@@ -166,10 +166,9 @@ if [[ (-n $appversion && -n "$updateTool") || "$type" == "updateronly" ]]; then
if [[ $DEBUG -ne 1 ]]; then
if runUpdateTool; then
finishing
cleanupAndExit 0
cleanupAndExit 0 "updateTool has run" REQ
elif [[ $type == "updateronly" ]];then
printlog "type is $type so we end here."
cleanupAndExit 0
cleanupAndExit 0 "type is $type so we end here." REQ
fi # otherwise continue
else
printlog "DEBUG mode 1 enabled, not running update tool" WARN
@@ -275,4 +274,4 @@ esac
finishing
# all done!
cleanupAndExit 0
cleanupAndExit 0 "All done!" REQ