update ln

This commit is contained in:
Cadey Ratio 2017-04-05 15:03:41 -07:00
parent 56fc4f89ba
commit 9756860cf9
2 changed files with 15 additions and 1 deletions

View File

@ -98,3 +98,7 @@ a00a8beb369cafd88bb7b32f31fc4ff3219c3565 github.com/Xe/gopreload
033754ab1fee508c9f98f2785eec2365964e0b05 github.com/aclements/go-moremath/mathx
4963dbd58fd03ebc6672b18f9237a9045e6ef479 github.com/dgryski/go-failure
91a8fc22ba247b57c243ab90b49049fb734c47c3 github.com/dgryski/go-onlinestats
49bd2f58881c34d534aa97bd64bdbdf37be0df91 (dirty) github.com/Xe/ln
ff09b135c25aae272398c51a07235b90a75aa4f0 github.com/pkg/errors
f759b797c0ff6b2c514202198fe5e8ba90094c14 github.com/Xe/ln
ff09b135c25aae272398c51a07235b90a75aa4f0 github.com/pkg/errors

12
vendor/github.com/Xe/ln/formatter.go generated vendored
View File

@ -43,7 +43,17 @@ func (t *TextFormatter) Format(e Event) ([]byte, error) {
writer.WriteString(e.Time.Format(t.TimeFormat))
writer.WriteString("\"")
for k, v := range e.Data {
keys := make([]string, len(e.Data))
i := 0
for k := range e.Data {
keys[i] = k
i++
}
for _, k := range keys {
v := e.Data[k]
writer.WriteByte(' ')
if shouldQuote(k) {
writer.WriteString(fmt.Sprintf("%q", k))