Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
feld (feld@bikeshed.party)'s status on Tuesday, 20-Aug-2024 04:46:05 JSTfeld @phnt @lanodan this is essentially what I was thinking about too. You can do it two ways:
Logger.error("message here", reason: error)
or simply
# attach this error metadata to ALL logs emitted by this process
Logger.metadata([reason: error])
Logger.error("message here")
the nice part about using Logger.metadata is that we could probably write a helper function that will just keep appending errors to a list so we can accumulate them