diff --git a/containers-toolkit/Private/UpdateEnvironmentPath.psm1 b/containers-toolkit/Private/UpdateEnvironmentPath.psm1 index 4e0353d..74fff49 100644 --- a/containers-toolkit/Private/UpdateEnvironmentPath.psm1 +++ b/containers-toolkit/Private/UpdateEnvironmentPath.psm1 @@ -1,4 +1,4 @@ -########################################################################### +########################################################################### # # # Copyright (c) Microsoft Corporation. All rights reserved. # # # @@ -6,6 +6,8 @@ # # ########################################################################### +using module "..\Private\logger.psm1" + function Update-EnvironmentPath { [CmdletBinding( SupportsShouldProcess = $true @@ -57,7 +59,7 @@ function Update-EnvironmentPath { } if ($pathChanged) { - Write-Information -InformationAction Continue -MessageData "$ActionVerb $toAction in $PathType Environment Path" + [Logger]::Info("$ActionVerb $toAction in $PathType Environment Path") # Get the updated path $updatedPath = switch ($Action) { @@ -68,7 +70,7 @@ function Update-EnvironmentPath { # For tests, we do not want to update the environment path if ($env:pester) { - Write-Debug "Skipping environment path update for tests" + [Logger]::Debug("Skipping environment path update for tests") return $updatedPath }