Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging - warnings for ".registry.bad." files are emitted with "-r" switch #1580

Closed
mwallner opened this issue May 28, 2018 · 2 comments
Closed

Comments

@mwallner
Copy link
Member

warnings for corrupted registry files are displayed with the -r switch

on each choco.exe call following message is getting emmited (twice)

A corrupt .registry file exists at C:\ProgramData\chocolatey\.chocolatey\accurev-client.5.7.1.170613\.registry.bad.
 Open this file in a text editor, and remove/escape any characters that
 are regarded as illegal within XML strings not surrounded by CData.
 These are typically the characters &, `<`, and `>`. Again, this
 is an XML document, so you will see many < and > characters, so just
 focus exclusively in the string values not surrounded by CData. Once
 these have been corrected, rename the .registry.bad file to .registry.
 Once saved, try running the same Chocolatey command that was just
 executed, so verify problem is fixed.
 NOTE: It will not be possible to rename the file in Windows Explorer.
 Instead, you can use the following PowerShell command:
 Move-Item .\.registry.bad .\.registry

the choco.exe parameter -r should not print warnings:

 -r, --limitoutput, --limit-output
     LimitOutput - Limit the output to essential information
gep13 added a commit to gep13/choco that referenced this issue May 29, 2018
- This required passing in a ChocolateyConfiguration object to multiple methods
- This resulted in changes to tests
- All output is now guarded, and only happens when RegularOutput is true
@ferventcoder ferventcoder added this to the 0.10.12 milestone May 29, 2018
@ferventcoder ferventcoder changed the title warnings for ".registry.bad." files are emitted with "-r" switch Logging - warnings for ".registry.bad." files are emitted with "-r" switch May 29, 2018
gep13 added a commit to gep13/choco that referenced this issue May 30, 2018
- This required passing in a ChocolateyConfiguration object to multiple methods
- This resulted in changes to tests
- All output is now guarded, and only happens when RegularOutput is true
gep13 added a commit to gep13/choco that referenced this issue May 30, 2018
- This required passing in a ChocolateyConfiguration object to multiple methods
- This resulted in changes to tests
- All output is now guarded, and only happens when RegularOutput is true
gep13 added a commit to gep13/choco that referenced this issue Oct 9, 2018
- This required passing in a ChocolateyConfiguration object to multiple methods
- This resulted in changes to tests
- All output is now guarded, and only happens when RegularOutput is true
gep13 added a commit to gep13/choco that referenced this issue Mar 9, 2019
- This required passing in a ChocolateyConfiguration into service
- All logging is now guarded, and only occurs when RegularOutput is true
ferventcoder added a commit that referenced this issue Mar 11, 2019
(GH-1580) Only output log messages when RegularOutput is enabled
@ferventcoder
Copy link
Member

This was merged into stable at 2706413

@ferventcoder
Copy link
Member

Merged into stable to be released with 0.10.12.

gep13 added a commit that referenced this issue Mar 11, 2019
* stable:
  (maint) Corrected whitespace
  (GH-1234) Fix typo in Parameter definition
  (maint) formatting
  (GH-1580) Only log when RegularOutput is enabled
  (maint) Whitespace changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants