You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2019/06/27 22:45:22 UTC

[trafficcontrol] branch master updated: CiaB: added log path of trafficops in variables.env (#3666)

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

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 5132621  CiaB: added log path of trafficops in variables.env (#3666)
5132621 is described below

commit 513262180265961849b786b1d951196512bf6332
Author: Shihta Kuan <Sh...@users.noreply.github.com>
AuthorDate: Fri Jun 28 06:45:18 2019 +0800

    CiaB: added log path of trafficops in variables.env (#3666)
---
 infrastructure/cdn-in-a-box/traffic_ops/config.sh | 10 +++++-----
 infrastructure/cdn-in-a-box/variables.env         |  5 +++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/infrastructure/cdn-in-a-box/traffic_ops/config.sh b/infrastructure/cdn-in-a-box/traffic_ops/config.sh
index 22619ad..b1fae8c 100755
--- a/infrastructure/cdn-in-a-box/traffic_ops/config.sh
+++ b/infrastructure/cdn-in-a-box/traffic_ops/config.sh
@@ -90,11 +90,11 @@ cat <<-EOF >/opt/traffic_ops/app/conf/cdn.conf
         "read_header_timeout" : 60,
         "write_timeout" : 60,
         "idle_timeout" : 60,
-        "log_location_error": "stdout",
-        "log_location_warning": "stdout",
-        "log_location_info": "stdout",
-        "log_location_debug": "stdout",
-        "log_location_event": "stdout",
+        "log_location_error": "$TO_LOG_ERROR",
+        "log_location_warning": "$TO_LOG_WARNING",
+        "log_location_info": "$TO_LOG_INFO",
+        "log_location_debug": "$TO_LOG_DEBUG",
+        "log_location_event": "$TO_LOG_EVENT",
         "max_db_connections": 20,
         "backend_max_connections": {
             "mojolicious": 4
diff --git a/infrastructure/cdn-in-a-box/variables.env b/infrastructure/cdn-in-a-box/variables.env
index 098788f..843a364 100644
--- a/infrastructure/cdn-in-a-box/variables.env
+++ b/infrastructure/cdn-in-a-box/variables.env
@@ -69,6 +69,11 @@ TO_PORT=443
 TO_PERL_HOST=trafficops-perl
 TO_PERL_PORT=443
 TO_SECRET=blahblah
+TO_LOG_ERROR=stdout
+TO_LOG_WARNING=stdout
+TO_LOG_INFO=stdout
+TO_LOG_DEBUG=stdout
+TO_LOG_EVENT=stdout
 TP_HOST=trafficportal
 TP_EMAIL=tp@cdn.example.com
 TR_HOST=trafficrouter