Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit c402627

Browse files
authored
Small formatting and naming changes
Changed name of config file, edited logging statement comment, removed unnecessary space character.
1 parent bfadb44 commit c402627

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SlackVeeamAlertSender.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Param(
99
Import-Module "$PSScriptRoot\Helpers"
1010

1111
# Get the config from our config file
12-
$config = (Get-Content "$PSScriptRoot\config\vsn.json") -Join "`n" | ConvertFrom-Json
12+
$config = (Get-Content "$PSScriptRoot\config\conf.json") -Join "`n" | ConvertFrom-Json
1313

14-
# Should we log?
14+
# Log if enabled in config
1515
if($config.debug_log) {
1616
Start-Logging "$PSScriptRoot\log\debug.log"
1717
}
@@ -113,7 +113,7 @@ switch ($Status) {
113113
}
114114

115115
# Build the details string
116-
$details = "Backup Size - " + [String]$JobSizeRound + " / Transferred Data - " + [String]$TransfSizeRound + " / Dedup Ratio - " + [String]$session.BackupStats.DedupRatio + " / Compress Ratio - " + [String]$session.BackupStats.CompressRatio + " / Duration - " + $Duration
116+
$details = "Backup Size - " + [String]$JobSizeRound + " / Transferred Data - " + [String]$TransfSizeRound + " / Dedup Ratio - " + [String]$session.BackupStats.DedupRatio + " / Compress Ratio - " + [String]$session.BackupStats.CompressRatio + " / Duration - " + $Duration
117117

118118
# Build the payload
119119
$slackJSON = @{}

0 commit comments

Comments
 (0)