Merge pull request #26669 from cpuguy83/vendor_syslog

re-vendor syslog package
This commit is contained in:
Alexander Morozov 2016-09-17 10:27:21 -07:00 committed by GitHub
commit 0589358eec
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ clone git github.com/docker/go-units f2145db703495b2e525c59662db69a7344b00bb8
clone git github.com/docker/go-connections 988efe982fdecb46f01d53465878ff1f2ff411ce
clone git github.com/docker/engine-api f9cef590446e4e6073b49b652f47a337b897c1a3
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

View File

@ -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
}