-
Notifications
You must be signed in to change notification settings - Fork 163
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
Exceptions not captured in Boxstarter.log #33
Comments
It should definitely be logging errors. Thats certainly the intent at least. A few questions:
|
Well, it seems to be working today 😝 I was searching the log for the words "exception" and "error". Maybe the exception message didn't contain those. It seems to log only the exception message and no stack trace, exception type, etc. So that may have been my confusion point. Feel free to close this, and if I can repro an actual bug I'll post a zip of a repro case. Thanks! Btw, setting $boxstarter.log seemed to work a treat except that it didn't persist between reboots. I had to set it at the top of every script I called from Install-BoxstarterPackage to try to make up for this, and some of the output in between may be getting lost at the old log location. I was launching from inside the VM. |
Yup. Thats a duplicate of #18. Need to make the log file configurable. |
I noticed red text scroll by in PowerShell while my script was running in a VM. Boxstarter.log had no record of it. I deduced it was the following call because the file being downloaded was incomplete/corrupt:
I tried doing a manual
throw
in PowerShell, and it didn't get captured either. Is boxstarter.log supposed to capture exception output? It would be nice if it did.Details that might be pertinent: The starting script installs Chocolatey and Boxstarter, builds NuGet packages from .ps1 files using New-PackageFromScript, then installs them all via a single call to Install-BoxstarterPackage. Packages avoid re-running lots of code after each reboot. Each of the packages sets $Boxstarter.log to c:\vagrant, a directory shared with the host machine.
The text was updated successfully, but these errors were encountered: