diff options
Diffstat (limited to 'sal/osl/all/log.cxx')
-rw-r--r-- | sal/osl/all/log.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index 13bd7c0b987f..c084bddbe5af 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -217,8 +217,12 @@ void log( s << /*no where*/' ' << message << '\n'; } else { s << area << ':' << OSL_DETAIL_GETPID << ':' - << osl::Thread::getCurrentIdentifier() << ':' << where << message - << '\n'; + << osl::Thread::getCurrentIdentifier() << ':'; + if (strncmp(where, SRCDIR, sizeof(SRCDIR)-1) == 0) + s << where+sizeof(SRCDIR); + else + s << where; + s << message << '\n'; } #ifdef HAVE_SYSLOG_H if (sal_use_syslog) |