diff --git a/lib/core.ps1 b/lib/core.ps1 index a2a6ae57a..6f7074073 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -49,7 +49,13 @@ function abort($msg, [int] $exit_code=1) { write-host $msg -f red; exit $exit_co function error($msg) { write-host "ERROR $msg" -f darkred } function warn($msg) { write-host "WARN $msg" -f darkyellow } function info($msg) { write-host "INFO $msg" -f darkgray } -function debug($msg) { write-host "DEBUG $msg" -f darkcyan } +function debug($msg, $indent = $false) { + if($indent) { + write-host " DEBUG $msg" -f darkcyan + } else { + write-host "DEBUG $msg" -f darkcyan + } +} function success($msg) { write-host $msg -f darkgreen } function filesize($length) {