changed: verboseoutlog to outlog (reducing runtime)
This commit is contained in:
parent
9acdffdbb8
commit
9e18f320cd
9 changed files with 434 additions and 437 deletions
|
|
@ -17,7 +17,7 @@ per institute (down from 10 h; do not regress this).
|
|||
| `Process-ADObjects.ps1` | Main entry, loads config, dot-sources the rest |
|
||||
| `Process-ADObjects-Configuration.ps1` | `$Config` hashtable: institutes, GroupManagementMappings, flags (`TestMode`, `Verbose`, ...). Pure data, no logic |
|
||||
| `Process-ADObjects-Base.ps1` | Core lookups: membership index (`newObjectMembershipsIndex`, `getObjectMemberships`, `getUsersByMemberGroup`), `getRoleType`, prefix matcher (`buildPrefixMatcher`, `testKnownPrefixes`) |
|
||||
| `Process-ADObjects-Utility.ps1` | Logging (`openLog`/`closeLog`/`outLog`/`outLogVerbose`), input checks, exception helpers, `removeDuplicatesFromSortedList` |
|
||||
| `Process-ADObjects-Utility.ps1` | Logging (`openLog`/`closeLog`/`outLog`/`### outLogVerbose`), input checks, exception helpers, `removeDuplicatesFromSortedList` |
|
||||
| `Process-ADObjects-Work.ps1` | Institute dispatch |
|
||||
| `Process-ADObjects-Work-R125.ps1` / `-Y015.ps1` | Per-institute processing. Structurally identical copies (deduplication planned). Sections: FileSystemAccess, AppAccess, AppConfiguration, Organisation, Security, Anwenderrollen; then post-processing (sort → dedup → Neu derivation → file writes) |
|
||||
| `Process-ADObjects-Analyze.ps1` | AD object analysis. Known incomplete; cleanup planned |
|
||||
|
|
@ -28,7 +28,7 @@ per institute (down from 10 h; do not regress this).
|
|||
- **English** for all code, comments, identifiers, log messages. German only in chat.
|
||||
- **Allman** brace style (opening brace on its own line).
|
||||
- **`utf8NoBom`** for every file output; LF is fine (runs on macOS/pwsh 7).
|
||||
- No `Write-Host` in processing code — use `outLog` / `outLogVerbose`.
|
||||
- No `Write-Host` in processing code — use `outLog` / `### outLogVerbose`.
|
||||
Exceptions: the output helpers themselves (`outLog`, `outScreen`, `dumpVar`,
|
||||
`writeExceptionInfo*`).
|
||||
- Institute code is parameterized via `$SPKID` (e.g. "R125") and `$SPKNO`
|
||||
|
|
@ -44,7 +44,7 @@ per institute (down from 10 h; do not regress this).
|
|||
- `outLog ... -ToScreen $false` — file only. Named parameter only; positional
|
||||
args all go to the message (`PositionalBinding=$false` +
|
||||
`ValueFromRemainingArguments`).
|
||||
- `outLogVerbose <args...>` — trace layer, gated by `$Config.Verbose`, never to
|
||||
- `### outLogVerbose <args...>` — trace layer, gated by `$Config.Verbose`, never to
|
||||
screen. ~440 call sites instrument every loop iteration and if/elseif/else
|
||||
branch. With `Verbose = $true` a full run writes millions of lines — use
|
||||
`TestMode` for verbose runs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue