summaryrefslogtreecommitdiff
path: root/indra/llcommon/llerror.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2019-03-08 13:39:56 -0800
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 18:39:21 -0400
commita6f31e9167c75982bb5eaba96ec6ac1f70ee31fb (patch)
treee593f0cfe4a581464119daf53f10bf58ac0cf0e6 /indra/llcommon/llerror.cpp
parent6992ad457c04a2f9b4dee96c19d1e0df3c870dbc (diff)
Fixed variadic macro usage in LL_ERRS_IF and LL_WARNS_IF and improved LLError::shouldLogToStderr() behavior under xcode.
Diffstat (limited to 'indra/llcommon/llerror.cpp')
-rw-r--r--indra/llcommon/llerror.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp
index 4bf4827119..2d4898f7be 100644
--- a/indra/llcommon/llerror.cpp
+++ b/indra/llcommon/llerror.cpp
@@ -664,10 +664,10 @@ namespace
// console log. It's generally considered bad form to spam too much
// there.
- // If stdin is a tty, assume the user launched from the command line and
- // therefore wants to see stderr. Otherwise, assume we've been launched
- // from the finder and shouldn't spam stderr.
- return isatty(0);
+ // If stderr is a tty, assume the user launched from the command line or
+ // debugger and therefore wants to see stderr. Otherwise, assume we've
+ // been launched from the finder and shouldn't spam stderr.
+ return isatty(STDERR_FILENO);
#else
return true;
#endif