1
0
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:
Brian Tiger Chow
2014-11-24 22:41:03 -08:00
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
}