LIGHTNING-NOTIFICATION-WARNING(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸ’– LIGHTNING-NOTIFICATION-WARNING(7) πŸ’–

okay so bestie, listen β€” this is a page from the LIGHTNING-NOTIFICATION-WARNING part of the manual, section 7, and it's honestly so useful. grab a snack, we're learning what warning notifications are πŸ“


✨ NAME ✨

warning β€” the notification that fires for warning-level log events πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: the warning notification is the little messenger that informs you whenever lightningd emits a warning or error level event β€” specifically the kind that should be surfaced to plugins. it's giving "hey bestie, something happened and you should probably know about it" energy πŸ’…

no cap, that's the whole point. if lightningd has something to say at that level, this notification is how plugins hear about it. periodt πŸ”₯


🌸 NOTIFICATION PAYLOAD 🌸

here's what's inside the notification, every single field, don't skip any of these or i will know πŸ™ˆ

  • level (string) (one of "warn", "error") β€” the log level of the warning notification. so it's either "warn" or "error", no in-between, iykyk ⭐
  • time (string) β€” the event time, as seconds since epoch, with subsecond precision. fancy precision, we love to see it ✨
  • timestamp (string) β€” the event time in ISO 8601 format. (added v24.02) πŸ’–
  • source (string) β€” the source component that emitted the log entry. like, who's speaking please πŸ‘€
  • log (string) β€” the original log message. the actual words, verbatim, iconic πŸ’€

fr fr bestie: every one of those fields is a string. yes, even time. yes, even though it's literally seconds. that's just how it is 🫢

and that's the whole page!! ngl it's a short one but it ate πŸ΄πŸ’…

mwah, this has been Core Lightning v26.06.9, and the manual page itself is LIGHTNING-NOTIFICATION-WARNING(7) β€” go forth and surface those warnings, you absolute icon πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from