mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
Update github.com/maybebtc/logrus dependency
This patch was generated by running: $ godep update github.com/maybebtc/logrus Without this, `godep restore` fails like this: ``` $ LANG=C godep restore fatal: reference is not a tree: 005463f8fb49c4a6f36181e05157e111ec5cf8a3 godep: restore: exit status 128 ``` License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
4
Godeps/Godeps.json
generated
4
Godeps/Godeps.json
generated
@ -133,8 +133,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/maybebtc/logrus",
|
"ImportPath": "github.com/maybebtc/logrus",
|
||||||
"Comment": "v0.6.0-6-g005463f",
|
"Comment": "v0.6.0-5-gf92b795",
|
||||||
"Rev": "005463f8fb49c4a6f36181e05157e111ec5cf8a3"
|
"Rev": "f92b7950b372b1db80bd3527e4d40e42555fe6c2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/mitchellh/go-homedir",
|
"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