Skip to content

Commit ecfb766

Browse files
committed
Add constant for log separator
1 parent a99abf1 commit ecfb766

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/helpers/config.ps1‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ function Get-Config {
193193
SOUNDS_DISABLED = Get-EnvBool -value $envConfig['SOUNDS_DISABLED'] -default $false
194194
}
195195

196+
constants = [ordered]@{
197+
LOG_SEPARATOR = '=' * 100
198+
}
199+
196200
defaults = @{
197201
zendExtensions = @('opcache', 'xdebug')
198202
extensions = @(

‎src/helpers/output.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Add-LogEntry {
3535
Show-Message -message "Failed to create directory $(Split-Path -Path $logPath)"
3636
return -1
3737
}
38-
$content = "`n--------------------------"
38+
$content = "`n$($PVMConfig.constants.LOG_SEPARATOR)"
3939
$content += "`n[$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')] $($data.header)"
4040
if ($data.exception) {
4141
$content += "`nMessage: $($data.exception.Exception.Message)"

0 commit comments

Comments
 (0)