Fix TO GOlang swapped log bytes and time

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d50d93ed
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d50d93ed
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d50d93ed

Branch: refs/heads/master
Commit: d50d93ed1b62d576e8aa9d80a147943a9293465b
Parents: fcc34ac
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Wed Jul 26 17:27:31 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/traffic_ops_golang/wrappers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d50d93ed/traffic_ops/traffic_ops_golang/wrappers.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/wrappers.go 
b/traffic_ops/traffic_ops_golang/wrappers.go
index b20cd53..17f3e1c 100644
--- a/traffic_ops/traffic_ops_golang/wrappers.go
+++ b/traffic_ops/traffic_ops_golang/wrappers.go
@@ -49,7 +49,7 @@ func wrapAuth(h RegexHandlerFunc, noAuth bool, secret string, 
privLevelStmt *sql
                w = iw
                username := "-"
                defer func() {
-                       log.EventfRaw(`%s - %s [%s] "%v %v HTTP/1.1" %v %v %v 
"%v"`, r.RemoteAddr, username, time.Now().Format(AccessLogTimeFormat), 
r.Method, r.URL.Path, iw.code, int(time.Now().Sub(start)/time.Millisecond), 
iw.byteCount, r.UserAgent())
+                       log.EventfRaw(`%s - %s [%s] "%v %v HTTP/1.1" %v %v %v 
"%v"`, r.RemoteAddr, username, time.Now().Format(AccessLogTimeFormat), 
r.Method, r.URL.Path, iw.code, iw.byteCount, 
int(time.Now().Sub(start)/time.Millisecond), r.UserAgent())
                }()
 
                handleUnauthorized := func(reason string) {

Reply via email to