Kaydet (Commit) fc480bca authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Strip SRCDIR from the logging output

Change-Id: I6069102f6b9df72a63a840758158f672fdd6c621
üst a2b65182
......@@ -52,6 +52,7 @@ $(eval $(call gb_Library_add_defs,sal,\
-DSAL_DLLIMPLEMENTATION \
-DRTL_OS="\"$(RTL_OS)"\" \
-DRTL_ARCH="\"$(RTL_ARCH)"\" \
-DSRCDIR="\"$(SRCDIR)\"" \
))
$(eval $(call gb_Library_use_libraries,sal,\
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment