Local logging improvements

Improved first lines of logs to be required and show `VERSION` and `VERSIONDATE` on separate lines.
Logging sent to Datadog will have `VERSION` on each line.
This commit is contained in:
Søren Theilgaard
2022-01-13 21:52:15 +01:00
parent 82faf74eb3
commit 7f2bdfb1df
2 changed files with 9 additions and 13 deletions

View File

@@ -43,12 +43,14 @@ if [[ $label == "version" ]]; then
exit 0
fi
printlog "################## Start Installomator v. $VERSION"
printlog "################## $label"
printlog "################## Start Installomator" REQ
printlog "################## Version: $VERSION" REQ
printlog "################## Date: $VERSIONDATE" REQ
printlog "################## $label" REQ
# Check for DEBUG mode
if [[ $DEBUG -gt 0 ]]; then
printlog "DEBUG mode $DEBUG enabled."
printlog "DEBUG mode $DEBUG enabled." DEBUG
fi
# How we get version number from app