Skip to content
Snippets Groups Projects
Commit 95e2ca49 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make debug logging configurable.

parent ae43a1a5
No related branches found
No related tags found
No related merge requests found
......@@ -368,9 +368,9 @@ function Log-Info([string]$Message) {
function Log-Debug([string]$Message) {
Write-Verbose $Message
# NOTE: to disable debug logging simply uncomment the "Return" below:
# Return
Log-Message -Type Information -Message $Message -Id 999
if ($UpdaterDebugLogging) {
Log-Message -Type Information -Message $Message -Id 1000
}
}
################################################################################
......
......@@ -8,6 +8,7 @@ $LogPath = "$($InstallationPath)"
$UpdateSourcePath = "\\fileserver.mydomain.xy\share\_AUTOTX_"
$Pattern = 'build_[0-9]{4}-[0-9]{2}-[0-9]{2}_'
$UpdaterDebugLogging = $False
$EmailFrom = "admin@mydomain.xy"
$EmailTo = "admin@mydomain.xy"
$EmailSMTP = "smtp.mydomain.xy"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment