Skip to content

Commit 482eb7a

Browse files
committed
show the compresscmd + compressoptions as a full command line for debug and verbose modes
1 parent 3dac6e9 commit 482eb7a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: Log-Rotate.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ $LogObject = [PSCustomObject]@{
426426

427427
try {
428428
Write-Verbose "Compressing log with: $compresscmd"
429+
Write-Verbose "Compress command line: $compresscmd $( $params -join ' ' )"
429430
if ($g_debugFlag) {
430431
return
431432
}

Diff for: Modules/Log-Rotate/Log-Rotate.psm1

+2-1
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ $LogObject = [PSCustomObject]@{
318318

319319
try {
320320
Write-Verbose "Compressing log with: $compresscmd"
321+
Write-Verbose "Compress command line: $compresscmd $( $params -join ' ' )"
321322
if ($g_debugFlag) {
322323
return
323324
}
@@ -1398,7 +1399,7 @@ function Log-Rotate {
13981399
$PSDefaultParameterValues['Invoke-Command:ErrorAction'] = 'Stop'
13991400

14001401
# Prints miscellaneous information and exits
1401-
$LogRotateVersion = '1.2.0'
1402+
$LogRotateVersion = '1.2.1'
14021403
if ($Version) {
14031404
Write-Output "Log-Rotate $LogRotateVersion"
14041405
return

0 commit comments

Comments
 (0)