You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This is mostly an internal issue that doesn't affect users of choco.exe, but it may affect users of the API.
If you use Log() and then later initialize a different log type (such as changing NullLogger to Log4Net), any existing instances of a Logger for a particular object will continue to use NullLogger. This is because the types are cached and then reused. When Initializing the log type, one should also make sure the cache of loggers is cleared.
This mostly affects the specs and is the source of the failing AppVeyor builds.
The text was updated successfully, but these errors were encountered:
This mostly affects the specs - if you use the loggers and then later
initialize them with a logger, the already initialized loggers will
still use the NullLogger because they were not cleared.
This could also lead to some very interesting behavior when using the
dll version of Chocolatey.
* stable:
(maint) formatting
(spec) Ensure MockLogger is setup first in test suite
(specs) Allow for nupkgs to finish copying
(specs) use deep copy for config
(GH-516) Fix: Log.InitializeWith doesn't clear cached loggers
(GH-445) Only fail scripts on non-zero exit code
(GH-510) allow silentargs in template
NOTE: This is mostly an internal issue that doesn't affect users of choco.exe, but it may affect users of the API.
If you use Log() and then later initialize a different log type (such as changing NullLogger to Log4Net), any existing instances of a Logger for a particular object will continue to use NullLogger. This is because the types are cached and then reused. When Initializing the log type, one should also make sure the cache of loggers is cleared.
This mostly affects the specs and is the source of the failing AppVeyor builds.
The text was updated successfully, but these errors were encountered: