소스 검색

re-vendor syslog package

Fixes #26394

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit f528690674712b680caf2712092c7e2f8f236491)
Signed-off-by: Victor Vieux <vieux@docker.com>
Brian Goff 9 년 전
부모
커밋
a1d191d91e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      hack/vendor.sh
  2. 1 1
      vendor/src/github.com/RackSec/srslog/formatter.go

+ 1 - 1
hack/vendor.sh

@@ -61,7 +61,7 @@ clone git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://gith
 clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3
 clone git github.com/docker/go-connections fa2850ff103453a9ad190da0df0af134f0314b3d
 clone git github.com/docker/engine-api 4eca04ae18f4f93f40196a17b9aa6e11262a7269
-clone git github.com/RackSec/srslog 259aed10dfa74ea2961eddd1d9847619f6e98837
+clone git github.com/RackSec/srslog 365bf33cd9acc21ae1c355209865f17228ca534e
 clone git github.com/imdario/mergo 0.2.1
 
 #get libnetwork packages

+ 1 - 1
vendor/src/github.com/RackSec/srslog/formatter.go

@@ -32,7 +32,7 @@ func UnixFormatter(p Priority, hostname, tag, content string) string {
 // RFC3164Formatter provides an RFC 3164 compliant message.
 func RFC3164Formatter(p Priority, hostname, tag, content string) string {
 	timestamp := time.Now().Format(time.Stamp)
-	msg := fmt.Sprintf("<%d> %s %s %s[%d]: %s",
+	msg := fmt.Sprintf("<%d>%s %s %s[%d]: %s",
 		p, timestamp, hostname, tag, os.Getpid(), content)
 	return msg
 }