diff --git a/simgear/debug/logstream.cxx b/simgear/debug/logstream.cxx index f2c61531..952eba16 100644 --- a/simgear/debug/logstream.cxx +++ b/simgear/debug/logstream.cxx @@ -158,11 +158,16 @@ public: << std::setw(10) << std::left << debugClassToString(c) - << " " - << file - << ":" - << line - << ":" + ; + if (file && line != -1) { + m_file + << file + << ":" + << line + << ": " + ; + } + m_file << message << std::endl; //m_file << debugClassToString(c) << ":" << (int)p // << ":" << file << ":" << line << ":" << message << std::endl;