Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRework logging throughout the code. #1479
Comments
beorn7
added
the
enhancement
label
Mar 9, 2016
beorn7
referenced this issue
Mar 9, 2016
Merged
Handle errors caused by data corruption more gracefully #1448
This comment has been minimized.
This comment has been minimized.
|
Most (if not all) warnings and errors should probably have counters attached (as it is the case for some already, cf. |
fabxc
added
kind/enhancement
and removed
enhancement
labels
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
Also see #1315 , in particular consider query logging (separated or at least separatable) and separate out the crash recovery logs. |
This comment has been minimized.
This comment has been minimized.
|
I think #1315 covers the main aspects of the 2nd point, and for the 1st point more focused bugs would be useful. |
brian-brazil
closed this
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
Can we close this once the more focused bugs are filed and not the other way round? |
beorn7
reopened this
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
Hi @beorn7 Could you elaborate on what exactly is missing right now? I think most of structured logging is fixed, is it missing counters for errors/warnings? |
This comment has been minimized.
This comment has been minimized.
|
It might be all fixed in 2.0. I haven't assessed the state. Happy to close this if that's what you think. I was just objecting the notion of "let's close this and file more focused bugs later". (It should be the other way round. ;) |
This comment has been minimized.
This comment has been minimized.
|
Yep, absolutely. If its just counters for errors, I will open a new issue for that labelled Also, logging has not changed at all in 2.0. So if you could comment on the state of 1.x, I think it would cover the issue. |
This comment has been minimized.
This comment has been minimized.
|
I think we currently have no clarity what our logging philosophy is or should be. We follow different strategies in different parts of the code base. Regularly people complain about doing logging the "wrong" way. Sometimes, somebody angrily rips out logging code that others are then missing dearly (not necessarily in the way that they think it was perfect before but more in the way that the previous state was better than nothing). I think the first step in tackling this would be to write an RFC/design-doc where we come to terms with ourselves what logging should look like. After that, we can adjust reality to our grand plan. In general, I think that many individual aspects will be controversial, and some discussion will be needed to get consensus or at least buy-in. #1315 covers query logging, which is a big chunk of the work once we get it done. But there is much more. The notion of having a counter metric for each type of error logged – and vice versa a line of error log for each error metric incremented, might be something to add in there, but even there I'm not sure if it is uncontroversial. Bottom-line: Writing that RFC and getting clarity about the course of action is the actual work for this issue. Once that's done, filing more concrete bugs is easy (and arguably implementing better logging will be not much more than chore work). |
beorn7 commentedMar 9, 2016
There are two aspects of this: