trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject git commit: TS-1079 Fix compile problems, and add CHANGES
Date Tue, 10 Apr 2012 01:03:08 GMT
Updated Branches:
  refs/heads/master 59f30287a -> 35009fa5f


TS-1079 Fix compile problems, and add CHANGES


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/35009fa5
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/35009fa5
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/35009fa5

Branch: refs/heads/master
Commit: 35009fa5f04e1a89bcc5b371b689ce347869a011
Parents: 59f3028
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Mon Apr 9 19:02:47 2012 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Mon Apr 9 19:02:47 2012 -0600

----------------------------------------------------------------------
 CHANGES                 |    4 ++++
 mgmt/utils/MgmtUtils.cc |   13 +++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/35009fa5/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index fc05b04..cc1e17d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 3.1.4
+  *) [TS-1079] Add an API function to turn debugging on for specific
+   transactions/sessions. This also adds a new Debug() functionality in
+   both core and APIs. Author: Uri Shachar.
+
   *) [TS-1194 Change conversions to build with gcc-4.6 on OmniOS/Solaris.
    Also cleanup a couple of plugins to use our "core" build environment.
 	

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/35009fa5/mgmt/utils/MgmtUtils.cc
----------------------------------------------------------------------
diff --git a/mgmt/utils/MgmtUtils.cc b/mgmt/utils/MgmtUtils.cc
index 0681b30..089a0e4 100644
--- a/mgmt/utils/MgmtUtils.cc
+++ b/mgmt/utils/MgmtUtils.cc
@@ -392,9 +392,9 @@ mgmt_elog(FILE * log, const char *message_format, ...)
 #if defined(LOCAL_MANAGER) || defined(PROCESS_MANAGER)
   if (diags_init) {
     int lerrno = errno;
+
     diags->print_va(NULL, DL_Error, NULL, message_format, ap);
-    snprintf(message, sizeof(message), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
-    diags->print(NULL, DTA(DL_Error), message);
+    diags->print(NULL, DTA(DL_Error), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
   } else {
 #endif
     if (use_syslog) {
@@ -432,8 +432,7 @@ mgmt_elog(const char *message_format, ...)
   if (diags_init) {
     int lerrno = errno;
     diags->print_va(NULL, DL_Error, NULL, message_format, ap);
-    snprintf(message, sizeof(message), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
-    diags->print(NULL, DTA(DL_Error), message);
+    diags->print(NULL, DTA(DL_Error), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
   } else {
 #endif
 
@@ -477,8 +476,7 @@ mgmt_fatal(FILE * log, const char *message_format, ...)
   if (diags_init) {
     int lerrno = errno;
     diags->print_va(NULL, DL_Fatal, NULL, message_format, ap);
-    snprintf(message, sizeof(message), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
-    diags->print(NULL, DTA(DL_Fatal), message);
+    diags->print(NULL, DTA(DL_Fatal), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
   } else {
 #endif
 
@@ -524,8 +522,7 @@ mgmt_fatal(const char *message_format, ...)
   if (diags_init) {
     int lerrno = errno;
     diags->print_va(NULL, DL_Fatal, NULL, message_format, ap);
-    snprintf(message, sizeof(message), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
-    diags->print(NULL, DTA(DL_Fatal), message);
+    diags->print(NULL, DTA(DL_Fatal), " (last system error %d: %s)\n", lerrno, strerror(lerrno));
   } else {
 #endif
 


Mime
View raw message