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:
parent
d1e9134a89
commit
ded91614ab
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user