You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ro...@apache.org on 2018/06/21 19:21:35 UTC
[trafficcontrol] 01/02: log errors from the TO http server to the
error log
This is an automated email from the ASF dual-hosted git repository.
rob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit 34cae1ac4bf0facc413afb241904e7d2a267c323
Author: Dylan Volz <Dy...@comcast.com>
AuthorDate: Thu Jun 21 13:01:32 2018 -0600
log errors from the TO http server to the error log
---
traffic_ops/traffic_ops_golang/traffic_ops_golang.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/traffic_ops/traffic_ops_golang/traffic_ops_golang.go b/traffic_ops/traffic_ops_golang/traffic_ops_golang.go
index ba341e6..f5e2865 100644
--- a/traffic_ops/traffic_ops_golang/traffic_ops_golang.go
+++ b/traffic_ops/traffic_ops_golang/traffic_ops_golang.go
@@ -131,6 +131,7 @@ func main() {
ReadHeaderTimeout: time.Duration(cfg.ReadHeaderTimeout) * time.Second,
WriteTimeout: time.Duration(cfg.WriteTimeout) * time.Second,
IdleTimeout: time.Duration(cfg.IdleTimeout) * time.Second,
+ ErrorLog: log.Error,
}
if err := server.ListenAndServeTLS(cfg.CertPath, cfg.KeyPath); err != nil {