-
Notifications
You must be signed in to change notification settings - Fork 70
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
revert: explicitly write wide string characters to console #193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey all! Thanks for the quick fix on this one. I was playing around with the codebase yesterday and I suspected it was the changes reverted in this PR. I pulled down this branch and deployed the exe to my container in ECS. I have logs again but now LogMonitor shows a different error when monitoring my directory which was previously working. Would you prefer a separate bug for this? Expected
Immediately after
Serilog configuration in appsettings.json
LogMonitorConfig.json
|
I did some investigating. Bear with me here because I am not a C++ developer. It looks like the changes to FileMonitorUtilities.cpp are what is causing the break - Comparison with 2.0.2. I suspect it is the return of INVALID_HANDLE_VALUE which causes the file monitoring thread to exit and stop monitoring a directory. This is not ERROR_SUCCESS so the monitoring thread exits. |
I did confirm the above theory. Using my local build of LogMonitor.exe I now have custom logs flowing again from my container in ECS! I love the custom logs feature by the way and it was my main impetus for upgrading. I now have structured logs flowing to my Log Group. I'll let you all do with what you want from my comments. If you need anything else from me let me know. Thanks again for the quick response! |
Thanks @Raffledoocious for testing this, working on the bug you've mentioned above |
@Raffledoocious Could you confirm if the path By design, the parent directory must exist. In this case, the path is windows-container-tools/LogMonitor/src/LogMonitor/FileMonitor/FileMonitorUtilities.cpp Line 165 in 6c30340
The error is thrown here: windows-container-tools/LogMonitor/src/LogMonitor/FileMonitor/FileMonitorUtilities.cpp Line 192 in 6c30340
TODO: Update README.md |
@TinaMor Sure thing. I could create it in my Dockerfile and ensure it does exist on container start. I see you have a TODO for the README which would help clarify the directory existing is now expected behavior. Does this message also need adjustment if this behavior is changed?
|
LogMonitor expects that the parent directory (for nested directories) to exist. For example: the directory path is “C:\app\logs\app.com”. It is expected that “C:\app\logs\” exists before LogMonitor starts. We will update the README.md with this. |
Awesome, thanks for the clarification! I'm happy to test out anything for you all if you need it on this PR otherwise I'll look for the next release. |
reverts changes from this PR.