Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Aug 24, 2018

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
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
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 TravisEz13 merged commit bf0787f into PowerShell:master Aug 26, 2018
@TravisEz13 TravisEz13 deleted the fix_scriptblock_logging_on_windows branch August 26, 2018 18:03
@TravisEz13 TravisEz13 added this to the v6.1.0 milestone Aug 28, 2018
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