From 2f345c85157805afee2e94d0fb252bd2364584f6 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Wed, 22 Oct 2014 02:58:04 -0700 Subject: [PATCH] cleanup: removed key marshal logs --- util/key.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/key.go b/util/key.go index 1dd2f39cf..7cbf09518 100644 --- a/util/key.go +++ b/util/key.go @@ -55,15 +55,12 @@ func (k *Key) UnmarshalJSON(mk []byte) error { if len(*k) == 0 && len(s) > 2 { // if b58.Decode fails, k == "" return fmt.Errorf("Key.UnmarshalJSON: invalid b58 string: %v", mk) } - log.Info("Unmarshal in: %s \"%s\"", *k, s) return nil } // MarshalJSON returns a JSON-encoded Key (string) func (k *Key) MarshalJSON() ([]byte, error) { - b, err := json.Marshal(b58.Encode([]byte(*k))) - log.Info("Marshal out: %s %s", *k, b) - return b, err + return json.Marshal(b58.Encode([]byte(*k))) } // KeyFromDsKey returns a Datastore key