Skip to content

Commit 56aa415

Browse files
committed
[lldb] Drop LOG_CONS from openlog call.
Don't pass `LOG_CONS` to the openlog call. > Write directly to the system console if there is an error while > sending to the system logger. This seemed like a good idea at the time, but it turns out to be extremely annoying when this happens and LLDB is overwhelmed by log messages in the console. rdar://132243490 (cherry picked from commit 34e67ff)
1 parent 06f3297 commit 56aa415

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ using namespace lldb_private;
9393
#include <syslog.h>
9494
void Host::SystemLog(Severity severity, llvm::StringRef message) {
9595
static llvm::once_flag g_openlog_once;
96-
llvm::call_once(g_openlog_once, [] {
97-
openlog("lldb", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_USER);
98-
});
96+
llvm::call_once(g_openlog_once,
97+
[] { openlog("lldb", LOG_PID | LOG_NDELAY, LOG_USER); });
9998
int level = LOG_DEBUG;
10099
switch (severity) {
101100
case lldb::eSeverityInfo:

0 commit comments

Comments
 (0)