-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb] Make the system log a NOOP on Windows #112052
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
Conversation
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative.
@llvm/pr-subscribers-lldb Author: Jonas Devlieghere (JDevlieghere) ChangesWindows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative. Full diff: https://github.com/llvm/llvm-project/pull/112052.diff 1 Files Affected:
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index f08adea6546ae1..b7d9725d378d0c 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -111,17 +111,7 @@ void Host::SystemLog(Severity severity, llvm::StringRef message) {
syslog(level, "%s", message.data());
}
#else
-void Host::SystemLog(Severity severity, llvm::StringRef message) {
- switch (severity) {
- case lldb::eSeverityInfo:
- case lldb::eSeverityWarning:
- llvm::outs() << message;
- break;
- case lldb::eSeverityError:
- llvm::errs() << message;
- break;
- }
-}
+void Host::SystemLog(Severity severity, llvm::StringRef message) {}
#endif
#endif
|
Windows system log : https://learn.microsoft.com/en-us/windows/win32/Events/windows-events |
I wonder if this is going to fix https://lab.llvm.org/buildbot/#/builders/141/builds/3100, so I am testing it right now.
|
Merging to fix our Windows bot. |
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative.
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative. (cherry picked from commit 3dedcab)
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative. (cherry picked from commit 3dedcab)
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative.