1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +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:
Christian Couder
2014-11-25 06:33:06 +01:00
parent ca3e83016c
commit 9d7d02c21c
2 changed files with 2 additions and 18 deletions

4
Godeps/Godeps.json generated
View File

@ -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",

View File

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