Update Write-CMTraceLog.ps1

pull/597/head
Andrzej Demski 2024-04-01 14:46:04 +02:00 committed by GitHub
parent 35c4d206ac
commit 78624e4684
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -96,9 +96,9 @@ Function Write-CMTraceLog
$Message = $ErrorRecord;
}
[string]$logline_part1 = [string]::Format(
$global:logline_part1_template_error,
$Type.ToUpper(),
$Message.exception.message,
$global:logline_part1_template_error,
$Type.ToUpper(),
$Message.exception.message,
$Message.InvocationInfo.MyCommand,
$Message.InvocationInfo.ScriptName,
$Message.InvocationInfo.ScriptLineNumber,