This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
Import-Module " $PSScriptRoot \Helpers"
10
10
11
11
# 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
13
13
14
- # Should we log?
14
+ # Log if enabled in config
15
15
if ($config.debug_log ) {
16
16
Start-Logging " $PSScriptRoot \log\debug.log"
17
17
}
@@ -113,7 +113,7 @@ switch ($Status) {
113
113
}
114
114
115
115
# 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
117
117
118
118
# Build the payload
119
119
$slackJSON = @ {}
You can’t perform that action at this time.
0 commit comments