summaryrefslogtreecommitdiff
path: root/autobuild.xml
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-10-28 14:33:36 -0400
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 19:05:17 -0400
commit7845f73c7691d338ef92d653be12337215ff0f49 (patch)
treebc1c37412b188daa995b72eab588bf67f67bb276 /autobuild.xml
parent9f446be76ee804bcd2f6ff8546612c9fcaf2a73e (diff)
DRTVWR-476: Try to log stderr output from classic-C libraries.
Some of the libraries we use produce log output to stderr. Such output can be informative, but is invisible unless you launch the viewer from a console. In particular, it's invisible to anyone trying to diagnose a problem by reading someone else's SecondLife.log file. Make RecordToFile -- the Recorder subclass engaged by LLError::logToFile() -- redirect STDERR_FILENO to the newly-opened log file so that any subsequent writes to stderr (or cerr, for that matter) will be captured in the log file. But first duplicate the original stderr file handle, and restore it when RecordToFile is destroyed. That way, output written to stderr during the final moments of application shutdown should still appear on (console) stderr.
Diffstat (limited to 'autobuild.xml')
0 files changed, 0 insertions, 0 deletions