Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: log util cleanup #586

Merged
merged 3 commits into from
Feb 15, 2023
Merged

chore: log util cleanup #586

merged 3 commits into from
Feb 15, 2023

Conversation

harrysolovay
Copy link
Contributor

  • make the dbg method on ValueRune accept Runes as prefixs
  • make the logStatus of extrinsicStatusRune accept Runes as prefixes
  • add a log method on ValueRune (currently does same thing as dbg, which will be reworked upon resolution of rune: add support for DI via env #517)

Copy link
Contributor

@tjjfvi tjjfvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these will have updates from the prefix; you need to use .lazy() on prefix.

This still could have problems with filtering regarding the initial value, but this is a niche scenario that we can probably ignore.

@harrysolovay harrysolovay requested a review from tjjfvi February 15, 2023 20:09
Comment on lines 21 to 24
rune.into(ValueRune).map((value) => {
console.log(...prefix, value)
return value
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use .log()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor Author

@harrysolovay harrysolovay Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, does the placement of the prefix rune list matter (inside the inner Runes vs. wrapping this and Rune.tuple(prefixes) in another Rune.tuple, and then mapping their results into the inner runes)?

Copy link
Contributor

@tjjfvi tjjfvi Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really, the solution is to have a .trackMap or .metaMap or whatever on MetaRune and use that, but that can wait for later.

@harrysolovay harrysolovay merged commit 56917d3 into main Feb 15, 2023
@harrysolovay harrysolovay deleted the log-util-cleanup branch February 15, 2023 21:01
harrysolovay added a commit that referenced this pull request Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants