mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
Merge pull request #385 from chriscool/update_maybebtc_logrus
Update github.com/maybebtc/logrus dependency
This commit is contained in:
4
Godeps/Godeps.json
generated
4
Godeps/Godeps.json
generated
@ -133,8 +133,8 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/maybebtc/logrus",
|
||||
"Comment": "v0.6.0-6-g005463f",
|
||||
"Rev": "005463f8fb49c4a6f36181e05157e111ec5cf8a3"
|
||||
"Comment": "v0.6.0-5-gf92b795",
|
||||
"Rev": "f92b7950b372b1db80bd3527e4d40e42555fe6c2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/mitchellh/go-homedir",
|
||||
|
16
Godeps/_workspace/src/github.com/maybebtc/logrus/polite_json_formatter.go
generated
vendored
16
Godeps/_workspace/src/github.com/maybebtc/logrus/polite_json_formatter.go
generated
vendored
@ -1,16 +0,0 @@
|
||||
package logrus
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type PoliteJSONFormatter struct{}
|
||||
|
||||
func (f *PoliteJSONFormatter) Format(entry *Entry) ([]byte, error) {
|
||||
serialized, err := json.Marshal(entry.Data)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
|
||||
}
|
||||
return append(serialized, '\n'), nil
|
||||
}
|
Reference in New Issue
Block a user