Hacker News new | ask | show | jobs
by deskamess 85 days ago
Are there any restrictions on how short the error_slug should be? The meat of some of my errors can be pretty long (for example an ffmpeg error). There are also many phases to a job - call them tasks. Can a canonical log line be a collection of task log lines?
1 comments

You should avoid dumping the raw error entirely. The idea is that error_slug is a stable grouping key.

The idea is to consolidate all that can be grouped into one logical unit. So you would do one long log line at the end, after all tasks are done.

I see one of your responses that this is a complement to an existing logging system - a one line summary. That works for me.