Do not print C++ line numbers for Java logging.
R=jiayl@webrtc.org Review URL: https://codereview.webrtc.org/1342963002 . Cr-Commit-Position: refs/heads/master@{#9945}
This commit is contained in:
@ -132,6 +132,7 @@ LogMessage::LogMessage(const char* file, int line, LoggingSeverity sev,
|
||||
print_stream_ << "[" << std::dec << id << "] ";
|
||||
}
|
||||
|
||||
if (file != NULL)
|
||||
print_stream_ << "(" << FilenameFromPath(file) << ":" << line << "): ";
|
||||
|
||||
if (err_ctx != ERRCTX_NONE) {
|
||||
|
@ -354,7 +354,7 @@ inline bool LogCheckLevel(LoggingSeverity sev) {
|
||||
|
||||
#define LOG_TAG(sev, tag) \
|
||||
LOG_SEVERITY_PRECONDITION(sev) \
|
||||
rtc::LogMessage(__FILE__, __LINE__, sev, tag).stream()
|
||||
rtc::LogMessage(NULL, 0, sev, tag).stream()
|
||||
|
||||
#define PLOG(sev, err) \
|
||||
LOG_ERR_EX(sev, err)
|
||||
|
Reference in New Issue
Block a user