@cryptotaxi247 / kubo / commits / 2f345c851

cleanup: removed key marshal logs

Juan Batiz-Benet committed Oct 22, 2014 at 02:58 UTC 2f345c85157805afee2e94d0fb252bd2364584f6
1 file changed +1 -4
util/key.go
+1 -4
@@ -55,15 +55,12 @@ func (k *Key) UnmarshalJSON(mk []byte) error {
55 if len(*k) == 0 && len(s) > 2 { // if b58.Decode fails, k == ""
56 return fmt.Errorf("Key.UnmarshalJSON: invalid b58 string: %v", mk)
57 }
58 - log.Info("Unmarshal in: %s \"%s\"", *k, s)
58 return nil
59 }
60
61 // MarshalJSON returns a JSON-encoded Key (string)
62 func (k *Key) MarshalJSON() ([]byte, error) {
64 - b, err := json.Marshal(b58.Encode([]byte(*k)))
65 - log.Info("Marshal out: %s %s", *k, b)
66 - return b, err
63 + return json.Marshal(b58.Encode([]byte(*k)))
64 }
65
66 // KeyFromDsKey returns a Datastore key