Skip to content

Make -settingfile work for scriptblock logging on windows - #7631

Merged
Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
TravisEz13:fix_scriptblock_logging_on_windows
Aug 26, 2018
Merged

Make -settingfile work for scriptblock logging on windows#7631
Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
TravisEz13:fix_scriptblock_logging_on_windows

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented Aug 24, 2018

Copy link
Copy Markdown
Member

PR Summary

Make -settingfile work for scriptblock logging on windows

  • Move EarlyParse to the first thing in the ManagedEntrance so that we don't cache the settings before we parse the settings file.
  • Added a test case to prevent regression
    • I'm working on more test cases. Therefore, I used the TestCases parameter.
  • Changed the macOS tests back to CI as I think they are stable enough now.

PR Checklist

$values['LogLevel'] = $LogLevel.ToString()
}

if($IsWindows)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be conditional?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setting is only valid on windows

@TravisEz13
Travis Plunk (TravisEz13) merged commit bf0787f into PowerShell:master Aug 26, 2018
@TravisEz13
Travis Plunk (TravisEz13) deleted the fix_scriptblock_logging_on_windows branch August 26, 2018 18:03
@TravisEz13 Travis Plunk (TravisEz13) added this to the v6.1.0 milestone Aug 28, 2018
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…ll#7631)

Make `-settingfile` work for scriptblock logging on windows
  - Move EarlyParse to the first thing in the ManagedEntrance so that we don't cache the settings before we parse the settings file.
  - Added a test case to prevent regression
    - I'm working on more test cases.  Therefore, I used the TestCases parameter.
  - Changed the macOS tests back to CI as I think they are stable enough now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants