added logging in wallet operation