mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fetch the latest code with zero-harm but good-readability for Graylog2/go-gelf
update vendor.conf for github.com/Graylog2/go-gelf Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
This commit is contained in:
parent
09e99ef1fc
commit
79d47a3bb7
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852
|
||||||
github.com/golang/protobuf 8ee79997227bf9b34611aee7946ae64735e6fd93
|
github.com/golang/protobuf 8ee79997227bf9b34611aee7946ae64735e6fd93
|
||||||
|
|
||||||
# gelf logging driver deps
|
# gelf logging driver deps
|
||||||
github.com/Graylog2/go-gelf aab2f594e4585d43468ac57287b0dece9d806883
|
github.com/Graylog2/go-gelf 7029da823dad4ef3a876df61065156acb703b2ea
|
||||||
|
|
||||||
github.com/fluent/fluent-logger-golang v1.2.1
|
github.com/fluent/fluent-logger-golang v1.2.1
|
||||||
# fluent-logger-golang deps
|
# fluent-logger-golang deps
|
||||||
|
|
6
vendor/github.com/Graylog2/go-gelf/gelf/writer.go
generated
vendored
6
vendor/github.com/Graylog2/go-gelf/gelf/writer.go
generated
vendored
|
@ -117,8 +117,8 @@ func NewWriter(addr string) (*Writer, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// writes the gzip compressed byte array to the connection as a series
|
// writes the gzip compressed byte array to the connection as a series
|
||||||
// of GELF chunked messages. The header format is documented at
|
// of GELF chunked messages. The format is documented at
|
||||||
// https://github.com/Graylog2/graylog2-docs/wiki/GELF as:
|
// http://docs.graylog.org/en/2.1/pages/gelf.html as:
|
||||||
//
|
//
|
||||||
// 2-byte magic (0x1e 0x0f), 8 byte id, 1 byte sequence id, 1 byte
|
// 2-byte magic (0x1e 0x0f), 8 byte id, 1 byte sequence id, 1 byte
|
||||||
// total, chunk-data
|
// total, chunk-data
|
||||||
|
@ -126,7 +126,7 @@ func (w *Writer) writeChunked(zBytes []byte) (err error) {
|
||||||
b := make([]byte, 0, ChunkSize)
|
b := make([]byte, 0, ChunkSize)
|
||||||
buf := bytes.NewBuffer(b)
|
buf := bytes.NewBuffer(b)
|
||||||
nChunksI := numChunks(zBytes)
|
nChunksI := numChunks(zBytes)
|
||||||
if nChunksI > 255 {
|
if nChunksI > 128 {
|
||||||
return fmt.Errorf("msg too large, would need %d chunks", nChunksI)
|
return fmt.Errorf("msg too large, would need %d chunks", nChunksI)
|
||||||
}
|
}
|
||||||
nChunks := uint8(nChunksI)
|
nChunks := uint8(nChunksI)
|
||||||
|
|
Loading…
Reference in a new issue