Commit 26957c05 authored by Son of Odin's avatar Son of Odin

reduce logging

parent c6a2d024
......@@ -75,7 +75,6 @@ func (h ObservedTxInHandler) validateV1(ctx sdk.Context, msg MsgObservedTxIn) (b
if newSigner {
return true, nil
}
ctx.Logger().Error(notAuthorized.Error())
return false, notAuthorized
}
......
......@@ -17,7 +17,7 @@ type KeeperObserver interface {
func (k KVStore) SetActiveObserver(ctx sdk.Context, addr sdk.AccAddress) {
store := ctx.KVStore(k.storeKey)
key := k.GetKey(ctx, prefixActiveObserver, addr.String())
ctx.Logger().Info("set_active_observer", "key", key)
ctx.Logger().Debug("set_active_observer", "key", key)
store.Set([]byte(key), addr.Bytes())
}
......@@ -32,7 +32,7 @@ func (k KVStore) RemoveActiveObserver(ctx sdk.Context, addr sdk.AccAddress) {
func (k KVStore) IsActiveObserver(ctx sdk.Context, addr sdk.AccAddress) bool {
store := ctx.KVStore(k.storeKey)
key := k.GetKey(ctx, prefixActiveObserver, addr.String())
ctx.Logger().Info("is_active_observer", "key", key)
ctx.Logger().Debug("is_active_observer", "key", key)
return store.Has([]byte(key))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment