Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-log: enhanced log highlighting
✗ 0/1 checks passed ade wants to merge 5 commits into master · opened 3 months ago

Refactor out radicle::Logger and radicle::logger::Logger to radicle-log crate.

Enhance the test logger to highlight:

  1. Any base58 strings with a deterministic colour
  2. Any git refs to be boldened and underlined a. Any base58 strings inside refs to adhere to 1.
  3. Any git OIDs (short and long) first 6 characters mapped to a hex colour with light and dark background adjustments
  4. ... any timestamps also coloured as per 3. 👀
  5. error level logs are all red and underlined (with rules 1 - 4 applied)
  6. warning level logs are all yellow and underlined (witith rules 1 - 4 applied)

I /think/ I managed to preserve the existing feature toggles, but worth double checking!

Some checks failed — 0 passed, 1 failed View logs ↗
ade opened with revision 90a185bcf984e548d631a84457e27efbe3e4ba97 on base b937a93892db3d80833b3cdde3bc37935151e274 +581 -181 3 months ago
lorenz pushed revision 2 8a0b020ea5e8054adb5e3ef15bb26012d7face68 on base b937a93892db3d80833b3cdde3bc37935151e274 +683 -185 3 months ago

Distill

lorenz pushed revision 3 af22c124cbbccb919a75b00971c14f06233c9311 on base b937a93892db3d80833b3cdde3bc37935151e274 +588 -185 3 months ago

Fix:

  • Corretly account for rename while moving files from radicle to radicle-log.
  • Fix feature flags.
ade pushed revision 4 f366079ccd104722f1c26d0d2b966d1b33551b2d on base b937a93892db3d80833b3cdde3bc37935151e274 +594 -185 3 months ago

Honour NO_COLOR environment variable: https://no-color.org/

ade pushed revision 5 d9f963450760a0f3a4d89105776896247ea8b120 on base b937a93892db3d80833b3cdde3bc37935151e274 +619 -185 3 months ago

log: add aliase support for base58 strings via RAD_ALIASES env var

As an example, you can set the following to shorten alice, bob, eve and the repo OID in the logs:

$ RAD_ALIASES="z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk=bob,z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi=alice,z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z=eve,z42hL2jL4XNk6K8oHQaSWfMgCL7ji=test-repo" cargo nextest run --no-capture
ade pushed revision 6 c9775bedcbaa4af346b61c38f3e4c84eb3ca0213 on base 50fb228ae4c0c8f68413dc7922a1e2a32ace5655 +617 -184 3 months ago
did:key:z6MkireR...3voM pushed revision 7 0d095305397e9d720cc081e353b8cb75cbb3b087 on base 50fb228ae4c0c8f68413dc7922a1e2a32ace5655 +623 -184 3 months ago

Changes:

  • Improvements to mutex use
did:key:z6MkireR...3voM pushed revision 8 d0f6de0f05414ffd318fadadf16cd6f926d1742d on base 993428df5657e18b167ac0e6206efa0b6908d8c0 +623 -184 3 months ago

Rebase

ade pushed revision 9 dd7702b13be994d390ac566b5804bdf22e8e21e1 on base 50fb228ae4c0c8f68413dc7922a1e2a32ace5655 +623 -184 3 months ago