Title: Move CommandLineParameterParser.EarlyParse to UnmanagedPSEntry.Start to ensure early settingsfile parsing · Issue #7460 · PowerShell/PowerShell · GitHub
Open Graph Title: Move CommandLineParameterParser.EarlyParse to UnmanagedPSEntry.Start to ensure early settingsfile parsing · Issue #7460 · PowerShell/PowerShell
X Title: Move CommandLineParameterParser.EarlyParse to UnmanagedPSEntry.Start to ensure early settingsfile parsing · Issue #7460 · PowerShell/PowerShell
Description: Currently, there are a number of workarounds in the code base to handle the fact that logging needs to occur before the -SettingFile argument is parsed. See: #6085 - Logging is initialized before the configuration file is processed #7449...
Open Graph Description: Currently, there are a number of workarounds in the code base to handle the fact that logging needs to occur before the -SettingFile argument is parsed. See: #6085 - Logging is initialized before t...
X Description: Currently, there are a number of workarounds in the code base to handle the fact that logging needs to occur before the -SettingFile argument is parsed. See: #6085 - Logging is initialized before t...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7460
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move CommandLineParameterParser.EarlyParse to UnmanagedPSEntry.Start to ensure early settingsfile parsing","articleBody":"Currently, there are a number of workarounds in the code base to handle the fact that logging needs to occur before the -SettingFile argument is parsed.\r\n\r\nSee:\r\n* https://github.com/PowerShell/PowerShell/issues/6085 - Logging is initialized before the configuration file is processed\r\n* https://github.com/PowerShell/PowerShell/pull/7449 - Make sure that -SettingFile arg is parsed before we load the settings\r\n\r\nWhile these changes workaround specific issues, we still have areas where logging settings are ignored due to logging before the logging settings in the setting file is parsed. PR 7449 presents a possible fix by parsing the -SettingFile argument earlier in command-line parsing. This change would move this logic to moving this logic to UnmanagedPSEntry.Start and avoid any further issues.\r\n\r\nThe call should be placed immediately before PSEtwLog.LogConsoleStartup(), the call should then be unconditional, and the conditional call in ConsoleHost can be removed.\r\n\r\nAlso revisit the SetSnapInLoggingInformation(coreMshSnapin) in PSSnapInReader.ReadCoreEngineSnapIn which is currently disabled on UNIX due to this issue.","author":{"url":"https://github.com/dantraMSFT","@type":"Person","name":"dantraMSFT"},"datePublished":"2018-08-06T19:02:09Z","url":"https://github.com/PowerShell/PowerShell/issues/7460"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24b52fa0-64be-66d3-2e5b-424e992a7f8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 808C:32C295:159459:1DCF19:6AFD5E03 |
| html-safe-nonce | 22f1d580c60b3abf0dc556347242df0a3073b50091610ad48e69d69d5f95d002 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDhDOjMyQzI5NToxNTk0NTk6MURDRjE5OjZBRkQ1RTAzIiwidmlzaXRvcl9pZCI6IjEwOTI2NTE0Mjg2MzI5NDQxMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7b8152cba48d3ae1389054a08c8ed235c66181dda1eb888279b006881c14952b |
| hovercard-subject-tag | issue:348044565 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/7460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/193c2c3ca5d94cece919d67eb5505c9da4354d57befd40af6bb2f744ffef6fe3/PowerShell/PowerShell/issues/7460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/193c2c3ca5d94cece919d67eb5505c9da4354d57befd40af6bb2f744ffef6fe3/PowerShell/PowerShell/issues/7460 |
| og:image:alt | Currently, there are a number of workarounds in the code base to handle the fact that logging needs to occur before the -SettingFile argument is parsed. See: #6085 - Logging is initialized before t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dantraMSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width