mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-10 06:13:12 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user