simgear/debug/logstream.cxx: enable file:line on startup if SG_LOG_FILE_LINE is 1.

E.g. allows file:line in diagnostics when running test-suite.
This commit is contained in:
Julian Smith 2021-06-05 12:29:47 +01:00
parent d1e9134a89
commit ded91614ab

View File

@ -299,6 +299,10 @@ public:
m_consoleCallbacks.push_back(m_callbacks.back()); m_consoleCallbacks.push_back(m_callbacks.back());
} }
#endif #endif
const char* fl = getenv("SG_LOG_FILE_LINE");
if (fl && !strcmp(fl, "1")) {
m_fileLine = true;
}
} }
~LogStreamPrivate() ~LogStreamPrivate()