-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process ID (PID) of StoreBroker PowerShell session now captured in log
Some users have scenarios where they are running concurrent instances of StoreBroker, and for reasons specific to their situation, have chosen to have the logs always go to the same log file (instead of using `$global:SBLogPath` to set a different log file for each session. In these scenarios, it can be challenging to read the logs and understand what was happening exactly since there are entries from multiple commands intermixed. This change introduces adding the `$pid` of the StoreBroker PowerShell session to every log entry so that on post-mortem analysis, it would be easy to filter to just the logs for the specific `$pid`. For more info on `$pid`, [see here](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1&viewFallbackFrom=powershell-Microsoft.PowerShell.Core#pid)
- Loading branch information
1 parent
ff2db88
commit e55f267
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters