Commit 5610581
fix: quiet module load log (Verbose instead of Information) (#470)
## Summary
Closes #458.
The `Plaster vX.Y.Z module loaded successfully (...)` line printed on
**every** import because it was logged at `Information` level via
`Write-Information -InformationAction Continue`, which forces display
regardless of `$env:PLASTER_LOG_LEVEL`.
This demotes that message — and the symmetric `Plaster module is being
removed` message — to `Verbose`. They are now silent by default and only
surface when a user opts in with `PLASTER_LOG_LEVEL=Verbose` (and a
visible verbose stream).
The version is already read dynamically from the manifest
(`Import-PowerShellDataFile … .ModuleVersion`), so the message prints
the correct installed version (e.g. `v2.1.2`). The reporter saw `v2.0.0`
only because that was their installed build.
## Changes
- `Plaster/Plaster.psm1`: `Write-PlasterLog -Level Information` →
`-Level Verbose` for both the load and removal messages.
## Testing
- `Import-Module Plaster` — no output (silent). ✅
- `$env:PLASTER_LOG_LEVEL='Verbose'; $VerbosePreference='Continue';
Import-Module Plaster -Force` — emits `[Verbose] [Plaster] Plaster
v2.1.2 module loaded successfully (PowerShell 7.6.2)`. ✅
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent ff47c2d commit 5610581
3 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
0 commit comments