mirror of
https://github.com/apache/httpd.git
synced 2025-11-08 04:22:21 +03:00
* server/log.c (log_error_core): For APLOG_DEBUG on Unix, if __FILE__
is an absolute path (as in a VPATH build), just log the basename. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -459,7 +459,14 @@ static void log_error_core(const char *file, int line, int level,
|
|||||||
}
|
}
|
||||||
file = tmp;
|
file = tmp;
|
||||||
}
|
}
|
||||||
#endif /*_OSD_POSIX*/
|
#else /* _OSD_POSIX || WIN32 */
|
||||||
|
const char *p;
|
||||||
|
/* On Unix, __FILE__ may be an absolute path in a
|
||||||
|
* VPATH build. */
|
||||||
|
if (file[0] == '/' && (p = ap_strrchr_c(file, '/')) != NULL) {
|
||||||
|
file = p + 1;
|
||||||
|
}
|
||||||
|
#endif /*_OSD_POSIX || WIN32 */
|
||||||
len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
|
len += apr_snprintf(errstr + len, MAX_STRING_LEN - len,
|
||||||
"%s(%d): ", file, line);
|
"%s(%d): ", file, line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user