-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unable to use absolute path to log file on Windows #13
Comments
Maybe related : uber-go/zap#621 |
Oh boy, well, the zap situation kind of sucks. I actually didn't plan on using it, but I saw that OrbitDB and IPFS used it as Logger so I thought why not. The error described here comes from my own code though, and I will be able to fox that. As for zap it seems IPFS have fixed it before: ipfs/go-log@45b384f I'll likely take a similar approach to get it running. Thanks for pointing it out and providing further info! |
(Very crude) windows port, by me : https://github.com/altilunium/superhighway84 |
Hey there @altilunium, thanks for getting it working! How about creating a proper PR for the changes, so we can incorporate them into the official release? :-) |
Based on previous discussion I updated the issue title and added a temporary workaround. |
Thanks! Maybe you want to give the current master a try. I've moved to |
Tested on
This is a slightly different result - it looks like the paths are correctly formatted for Windows, but the log provider still can't interpret the path. |
@d1vanloon if you don't mind you might test with the latest master again. I committed a changed to the NewLogger function which might fix the issue you're experiencing on Windows. |
I tested on |
Summary
Setting an absolute path to the log file (the default) prevents the application from launching on Windows.
Steps to Reproduce
Environment: superhighway84 v0.0.4 on Windows build 22000.348
superhighway84.exe
Expected Result
The application launches.
Actual Result
The application crashes with the following message:
Workaround
Set a relative path for the log file.
Unfortunately, this is not a permanent fix as the log file will be recreated several times based on the working directory from which the application was launched.
Notes
This seems related to parsing Windows paths in the logging module.
The text was updated successfully, but these errors were encountered: