Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding events in key places #546

Merged
merged 7 commits into from Feb 14, 2019

Conversation

Projects
None yet
3 participants
@zalmen
Copy link
Member

zalmen commented Feb 14, 2019

No description provided.

@zalmen zalmen requested a review from antonlerner Feb 14, 2019

antonlerner added some commits Feb 14, 2019

@@ -36,6 +36,18 @@ type SerializableTransaction struct {
Payload []byte
}

func (t *SerializableTransaction) GetAmount() *big.Int {

This comment has been minimized.

@y0sher

y0sher Feb 14, 2019

Collaborator

Amount is better

if err != nil {
tp.Log.Error("db write error %v", err)
return failed, err
}

tp.Log.Info("new state root for layer %v is %x", layer, newHash)
tp.Log.With().Info("new state", log.Uint32("layer id", uint32(layer)), log.String("root hash", newHash.String()))

This comment has been minimized.

@y0sher

y0sher Feb 14, 2019

Collaborator

layer id and root hash will be used as json keys. it is less recommended that they have space. replace with _

if err != nil {
panic("cannot revert- improper state")
}
tp.Log.Info("reverted, new root %x", newState.IntermediateRoot(false))
tp.Log.With().Info("reverted", log.String("root hash", newState.IntermediateRoot(false).String()))

This comment has been minimized.

@y0sher

y0sher Feb 14, 2019

Collaborator

replace space here also

@y0sher
Copy link
Collaborator

y0sher left a comment

All your added log lines are at the Info level. is this the right level ? info is shown in all of our current setup.
consider downgrading to debug. (will be shown when debug mode is on)

@y0sher y0sher dismissed their stale review Feb 14, 2019

added more comments adter changes

@y0sher

y0sher approved these changes Feb 14, 2019

@antonlerner antonlerner merged commit efc47ef into develop Feb 14, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.