Update Write-CMTraceLog.ps1
parent
35c4d206ac
commit
78624e4684
|
@ -96,9 +96,9 @@ Function Write-CMTraceLog
|
||||||
$Message = $ErrorRecord;
|
$Message = $ErrorRecord;
|
||||||
}
|
}
|
||||||
[string]$logline_part1 = [string]::Format(
|
[string]$logline_part1 = [string]::Format(
|
||||||
$global:logline_part1_template_error,
|
$global:logline_part1_template_error,
|
||||||
$Type.ToUpper(),
|
$Type.ToUpper(),
|
||||||
$Message.exception.message,
|
$Message.exception.message,
|
||||||
$Message.InvocationInfo.MyCommand,
|
$Message.InvocationInfo.MyCommand,
|
||||||
$Message.InvocationInfo.ScriptName,
|
$Message.InvocationInfo.ScriptName,
|
||||||
$Message.InvocationInfo.ScriptLineNumber,
|
$Message.InvocationInfo.ScriptLineNumber,
|
||||||
|
|
Loading…
Reference in New Issue