ChocolateyGUI
ChocolateyGUI copied to clipboard
(#933) Remove duplicate output from console and Chocolatey GUI logs
Description Of Changes
Remove duplicate output from the Chocolatey GUI Console output, and the Chocolatey GUI logs.
Motivation and Context
Messages were being duplicated in both the console output view, and the Chocolatey GUI logs.
Testing
Note: This performs an upgrade by creating the upgraded package after it's installed in Chocolatey GUI due to discovering #953 whereby we can't seem to specify the version.
Second note: The package used here is a series of outputs with 30 second sleeps between and after them. This allows you to watch/monitor the logs without needing to be hyper vigilant and risk missing the output.
-
git clone https://gist.github.com/110756b357445cbaa815dbefe7e7c69b.git
-
choco pack 110756b357445cbaa815dbefe7e7c69b/delayed.nuspec
-
choco source add -n delayedTest -s $PWD/110756b357445cbaa815dbefe7e7c69b
- Launch Chocolatey GUI
- Navigate to the new
delayedTest
source - Install
delayed
package - Monitor that the console output is not doubled.
- Verify that output is in
C:\ProgramData\Chocolatey GUI\Logs\ChocolateyGui.<date>.log
- Verify that output is in
C:\ProgramData\chocolatey\logs\chocolatey.log
-
choco pack 110756b357445cbaa815dbefe7e7c69b/delayed.nuspec --version 10.1.1
- Perform an upgrade of
delayed
package - Ensure that output is not doubled, and in both of the previously mentioned logs
- Perform a reinstall of
delayed
package - Ensure that output is not doubled, and in both of the previously mentioned logs
- Perform an uninstall of
delayed
package - Ensure that output is not doubled, and in both of the previously mentioned logs
-
choco source delete -n delayedTest
Change Types Made
- [x] Bug fix (non-breaking change)
- [ ] Feature / Enhancement (non-breaking change)
- [ ] Breaking change (fix or feature that could cause existing functionality to change)
- [ ] PowerShell code changes.
Related Issue
Fixes #933
Change Checklist
- [ ] Requires a change to the documentation
- [ ] Documentation has been updated
- [ ] Tests to cover my changes, have been added
- [ ] All new and existing tests passed.
- [ ] PowerShell v2 compatibility checked.
Putting this as Draft for now as the commits need to be cleaned up. I purposely left them in there for now to show the progress of getting to the point where it is now.