Skip to content

Commit 804d3a0

Browse files
authored
Move some output to Debug. (#48)
1 parent dd2c292 commit 804d3a0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Cache properties not in desired state.
1515
- Make `Set()` call `Test()` and `Test()` call `Get()`.
1616
- Remove use of array addition and `ForEach-Object`.
17+
- Output only relevant state output at Verbose. Fixes [#45](https://github.com/dsccommunity/DscResource.Base/issues/45).
1718

1819
### Removed
1920

source/Classes/010.ResourceBase.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ class ResourceBase
147147

148148
[void] Set()
149149
{
150-
Write-Verbose -Message ($this.localizedData.SetDesiredState -f $this.GetType().Name)
150+
Write-Debug -Message ($this.localizedData.SetDesiredState -f $this.GetType().Name)
151151

152152
if ($this.Test())
153153
{
154-
Write-Verbose -Message $this.localizedData.NoPropertiesToSet
154+
Write-Debug -Message $this.localizedData.NoPropertiesToSet
155155
return
156156
}
157157

@@ -173,7 +173,7 @@ class ResourceBase
173173

174174
[System.Boolean] Test()
175175
{
176-
Write-Verbose -Message ($this.localizedData.TestDesiredState -f $this.GetType().Name)
176+
Write-Debug -Message ($this.localizedData.TestDesiredState -f $this.GetType().Name)
177177

178178
$null = $this.Get()
179179

0 commit comments

Comments
 (0)