-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly LGTM
accAmount | ||
accWalletId | ||
accAddresses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this ok given that there can be many addrs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course it's ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but what if you log an account with 50k addresses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, in this case we'll get a very big log. But we have a lot of different types with lists, and some of these lists can theoretically be really big. And now they are well-formatted, with indentation and newlines.
Do we have any example of the logs produced by those changes? I am skeptic about some of them to be honest by looking at the implementation 🤔 Beside, it'd be nice to make more smaller PRs for this kind of things. Showing the rendered output with each iteration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf comment above ^^^
I tested logging of all these API V1 types in
But all these changes are in one single module, and they are very similar. I thought it's not bad to put it in one PR... |
What is much better ? This is the kind of elements we'd like to see in the PR's comments or, in the ticket. From a reviewer perspective, you get all the details you need to assess the change :)
Well, yes and no 😕 ... It's still good to proceed by steps. I am not saying making one PR per type, that's too much. But we can focus on getting nice logs for the wallet operations for instance. And then, move on to a different set of operations. etc. Then, with each PR, we actually bring value to one particular set of endpoint, and it's much easier to review and integrate. We don't have to go from A to Z directly, every step in-between is worth taking. |
These are some examples, from old log and from new one. Logs for payment, old:
and new:
Logs for new EOS-wallet creation, old:
and new:
Logs for new wallet creation, old:
and new:
Logs for new address creation, old:
and new:
|
Closed in favor of few smaller PRs. |
#315
Overview
Comments