-
Notifications
You must be signed in to change notification settings - Fork 5
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
Debug stream can be cut off by binary data #122
Comments
Does this problem still exist in https://xrpl-hooks-ide-git-feat-debug-prettify-equilibriumco.vercel.app ? |
As far as I can see, front-end is displaying all logs as recieved now, you can compare them with xrpl debug stream explorer too https://hooks-testnet-debugstream.xrpl-labs.com/rLRoQRDHTVwxChE7abrQsD6PoDJtDs7qHK (replace url path with required account address). If compared at same time they seem to be similar. |
Well, yes, but comparing the stream explorer at different times shows surprising differences: The entry at 14:31 might be (times don't agree) logging a transaction from https://xrpl-hooks-ide-git-feat-debug-prettify-equilibriumco.vercel.app/ , which is cut off (also in IDE): The entries at 14:36 (at least the second & third one - no idea where the first 14:36 comes from) is logging a transaction I made locally, against rippled instance from https://github.com/XRPL-Labs/xrpld-hooks . I'd think it was the same payment transaction, and it was certainly the same hook (I didn't reinstall anything), but the log is not cut off, and it's also complete in rippled, which has with binary data that looks like some random memory... So while I agree the logging problems are not limited to IDE, I still think it would be nice to show all of the log (not just printable characters), so that in time we can learn what the problem actually is... |
Yes I saw this too, ide also shows full log sometimes and truncates them other times. If you have both debug streams open side by side, they show same logs, and this can be confirmed by inspecting socket messages directly. So ide can't do much in that, xrpl-labs needs to fix their logs! |
But of course IDE (which is for developers) can do more than the stream explorer (which shows the blockchain to anybody who's interested): it can show (and highlight) binary data in the log. Then we can see whether the truncated output in stream explorer is also caused by binary data coming from rippled, take the demo to XRPL Labs and (even before it's fixed) reassure hook developers the problem isn't in their code... |
Running the Payment transaction from an account with the attached hook produces the following stream:
(this is on the feat/debug-prettify branch but the same problem exists with the old debug stream formatting), i.e. without the (unconditional) trace output. The raw log can also be captured from rippled, and it does include the trace output, including the \0 character after
s
.Sometimes the log output with \0 characters is truncated even from rippled (it's very dependent of what's traced, e.g. length of the traced name), and it's debatable whether rippled should include \0 in its (otherwise readable text) output, but apparently it can happen, and it should be handled by the debug stream.
cutoff.zip
The text was updated successfully, but these errors were encountered: