You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2019/02/01 07:29:09 UTC
[trafficserver] branch quic-latest updated: Revert debug log format
change for interop
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new 4d1e6fd Revert debug log format change for interop
4d1e6fd is described below
commit 4d1e6fd9ab66a40f2624d4e486fa084a844be879
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Feb 1 16:28:29 2019 +0900
Revert debug log format change for interop
---
src/tscore/Diags.cc | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/tscore/Diags.cc b/src/tscore/Diags.cc
index 815d6d8..b34db02 100644
--- a/src/tscore/Diags.cc
+++ b/src/tscore/Diags.cc
@@ -225,8 +225,15 @@ Diags::print_va(const char *debug_tag, DiagsLevel diags_level, const SourceLocat
format_writer.print("[{timestamp}] ");
auto timestamp_offset = format_writer.size();
+ format_writer.print("{thread-name}");
+ format_writer.print(" {}: ", level_name(diags_level));
+
if (location(loc, show_location, diags_level)) {
- format_writer.print("<{:50,50}> ", *loc);
+ format_writer.print("<{}> ", *loc);
+ }
+
+ if (debug_tag) {
+ format_writer.print("({}) ", debug_tag);
}
format_writer.print("{}", format_string);