You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/09/20 17:15:04 UTC

[trafficserver] branch 8.0.x updated (fdbe478 -> b310e35)

This is an automated email from the ASF dual-hosted git repository.

bcall pushed a change to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.


    from fdbe478  Updated Changelog
     new e001316  Use the default log rotation enabled value and remove old comments in logging.yaml and link to docs
     new 9fb32a0  Updated the rpm spec file to have the correct files and fixed permissions
     new b310e35  Updated Changelog

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGELOG-8.0.0                  |  2 ++
 configs/logging.yaml.default     | 60 +++++-----------------------------------
 proxy/logging/YamlLogConfig.cc   |  2 +-
 tools/package/trafficserver.spec | 13 +++++++--
 4 files changed, 20 insertions(+), 57 deletions(-)


[trafficserver] 02/03: Updated the rpm spec file to have the correct files and fixed permissions

Posted by bc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 9fb32a04f6b2ff80d57be92c9e8d0811fc771a5f
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Sep 19 13:31:17 2018 -0700

    Updated the rpm spec file to have the correct files and fixed permissions
    
    (cherry picked from commit c64ae1144a283bcbf52674fb7fa0782eb9cdbbf2)
---
 tools/package/trafficserver.spec | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/tools/package/trafficserver.spec b/tools/package/trafficserver.spec
index ab91f11..0c6dd59 100755
--- a/tools/package/trafficserver.spec
+++ b/tools/package/trafficserver.spec
@@ -149,14 +149,12 @@ getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s /sbin/nologin -
 %{!?_licensedir:%global license %%doc}
 %license LICENSE
 %doc README CHANGELOG* NOTICE STATUS
-%attr(0755, ats, ats) %dir /etc/trafficserver
 %config(noreplace) /etc/trafficserver/*
 %{_bindir}/traffic*
 %{_bindir}/tspush
 %dir %{_libdir}/trafficserver
 %dir %{_libdir}/trafficserver/plugins
 %{_libdir}/trafficserver/libts*.so*
-%{_libdir}/trafficserver/libats*.so*
 %{_libdir}/trafficserver/plugins/*.so
 
 %if %{?fedora}0 > 0 || %{?rhel}0 >= 70
@@ -165,9 +163,13 @@ getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s /sbin/nologin -
 %config(noreplace) /etc/init.d/trafficserver
 %endif
 
+# Change the default file and directory permissions
+%attr(0755, ats, ats) %dir /etc/trafficserver
 %attr(0755, ats, ats) %dir /var/log/trafficserver
 %attr(0755, ats, ats) %dir /run/trafficserver
 %attr(0755, ats, ats) %dir /var/cache/trafficserver
+%attr(0644, ats, ats) /etc/trafficserver/*.config
+%attr(0644, ats, ats) /etc/trafficserver/*.yaml
 
 %files perl
 %defattr(-,root,root,-)
@@ -178,10 +180,15 @@ getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s /sbin/nologin -
 %defattr(-,root,root,-)
 %{_bindir}/tsxs
 %{_includedir}/ts
-%{_includedir}/atscppapi
+%{_includedir}/tscpp
 %{_datadir}/pkgconfig/trafficserver.pc
 
 %changelog
+* Wed Sep 19 2018 Bryan Call <bc...@apache.org> - 8.0.0-1
+- Changed the owner ofthe configuration files to ats
+- Include files for the C++ APIs moved
+- C++ library name changed
+
 * Tue Dec 19 2017 Leif Hedstrom <zw...@apache.org> - 7.1.2-1
 - Cleanup for 7.1.x, and various other changes. This needs more work
   upstream though, since I'm finding issues.


[trafficserver] 03/03: Updated Changelog

Posted by bc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit b310e3566f58dd04ec2b15b111ec86ea70e20019
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Sep 20 10:14:58 2018 -0700

    Updated Changelog
---
 CHANGELOG-8.0.0 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CHANGELOG-8.0.0 b/CHANGELOG-8.0.0
index d7e20d3..5631aa0 100644
--- a/CHANGELOG-8.0.0
+++ b/CHANGELOG-8.0.0
@@ -1238,3 +1238,5 @@ Changes with Apache Traffic Server 8.0.0
   #4244 - git ignore - location of autogenerated headers changed
   #4247 - Removes the deprecated plugin coallapsed_connection
   #4248 - PR-3724: Fix additional linkage issues.
+  #4271 - Updated the rpm spec file to have the correct files and fixed permissions
+  #4276 - Use the default log rotation enabled value and remove old comments in logging.yaml and link to docs


[trafficserver] 01/03: Use the default log rotation enabled value and remove old comments in logging.yaml and link to docs

Posted by bc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit e001316f00207f19c1f6053c26445f443224b7e0
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Sep 19 16:40:07 2018 -0700

    Use the default log rotation enabled value and remove old comments in
    logging.yaml and link to docs
    
    (cherry picked from commit 74f6b40f844e6c5a9f2179756ae5fa8003527105)
---
 configs/logging.yaml.default   | 60 +++++-------------------------------------
 proxy/logging/YamlLogConfig.cc |  2 +-
 2 files changed, 8 insertions(+), 54 deletions(-)

diff --git a/configs/logging.yaml.default b/configs/logging.yaml.default
index 7f9c26f..ea593ee 100644
--- a/configs/logging.yaml.default
+++ b/configs/logging.yaml.default
@@ -1,60 +1,14 @@
-# Custom log configuration.
-
-# The log.* functions accept a table that supports the following fields:
-#    Filename (string, required):
-#    Format (string or format object, required):
-#    Header (string, optional):
-#    RollingEnabled (boolean, optional):
-#    RollingIntervalSec (number, optional):
-#    RollingOffsetHr (number, optional):
-#    RollingSizeMb (number, optional):
-#    Filters (array of filter objects, optional):
-#    CollationHosts (array of strings, optional):
-#      This parameter may be either a single string or an array of entries.
-#      Entries may be strings or arrays of strings. A string specifies a
-#      single collation host, which is equivalent to providing an array
-#      containing a single string.
-#
-#      If multiple entries are given, multiple collation hosts are configured
-#      and each log entry will be forwarded to every host.
-#
-#      If an entry is an array of strings, this defines a collation host
-#      failover group. The first array entry is the primary collation host
-#      and the remaining entries are attached as ordered failover hosts
-#      that will be attempted if the primary host fails.
+# Custom log configuration
 #
-#      A single collation host with failover:
-#        { {'logs-1.example.com:4567', 'logs-2.example.com:4567'} }
+# Documentation on logging:
+#    https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/logging/index.en.html
 #
-#      Multiple collation hosts:
-#        {'logs-1.example.com:4567', 'logs-2.example.com:4567'}
+# Documentaion on logging.yaml file format:
+#    https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/logging.yaml.en.html
 #
-#      Multiple collation hosts with some failover:
-#        {'logs-1.example.com:4567', { 'logs-2.example.com:4567', 'logs-2a.example.com:4567'} }
+# Example log configurations:
+#    https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/logging/examples.en.html
 
-# Predefined variables.
-#
-# log.roll.none (number)
-#  RollingEnabled value to disable all log rolling.
-#
-# log.roll.time (number)
-#  RollingEnabled value. Roll at a certain time frequency, specified
-#  by RollingIntervalSec, and RollingOffsetHr.
-#
-# log.roll.size (number)
-#  RollingEnabled value. Roll when the size exceeds RollingSizeMb.
-#
-# log.roll.both (number)
-#  RollingEnabled value. Roll when either the specified rolling
-#  time is reached or the specified file size is reached.
-#
-# log.roll.any (number)
-#  RollingEnabled value. Roll the log file when the specified
-#  rolling time is reached if the size of the file equals or exceeds
-#  the specified size.
-#
-# log.protocol.http (number)
-#  Server protocol constants for constructing %<etype> filters.
 
 formats:
     # WebTrends Enhanced Log Format.
diff --git a/proxy/logging/YamlLogConfig.cc b/proxy/logging/YamlLogConfig.cc
index 9994962..07bfcfb 100644
--- a/proxy/logging/YamlLogConfig.cc
+++ b/proxy/logging/YamlLogConfig.cc
@@ -145,7 +145,7 @@ YamlLogConfig::decodeLogObject(const YAML::Node &node)
                    (0 == strcasecmp(mode.c_str(), "ascii_pipe") ? LOG_FILE_PIPE : LOG_FILE_ASCII));
   }
 
-  int obj_rolling_enabled      = 0;
+  int obj_rolling_enabled      = cfg->rolling_enabled;
   int obj_rolling_interval_sec = cfg->rolling_interval_sec;
   int obj_rolling_offset_hr    = cfg->rolling_offset_hr;
   int obj_rolling_size_mb      = cfg->rolling_size_mb;