You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to discuss how we use tracking levels, especially the ERROR level. I will explain 2 cases, but this could be applied everywhere in the software.
I think we should NOT use the ERROR logging level in these two cases because:
It's the expected application behaviour.
Or the user did not use the application correctly.
I would reserve the ERROR level for things the SysAdmin should investigate. Otherwise, we will add a lot of noise to the logs.
There could be errors if the reason is there was something wrong in the code even when the request was well-formed.
I would use the WARNING level only for the UDP case if we want to detect "bad" application use. However, I would do it via metrics instead of logs. For example, we might detect a non-normal number of "error with connection ID" responses and investigate it, but we first should assume it's just a harmful use of the application.
In conclusion, reserve "ERROR" levels only for unexpected things the SysAdmin should investigate.
Relates to: #1150
I want to discuss how we use tracking levels, especially the
ERROR
level. I will explain 2 cases, but this could be applied everywhere in the software.Case 1
Relates to: #1164
When a BitTorrent clients send a wrong connection ID to the UDP tracker, we write an error into the logs:
Case 2
Relates to: #1152
The tracker API returns a 500 in some cases, but that does not mean there was a server error. It's the expected API behavior. We want to fix that in the new major API version.
The loged line is like the following:
That line is generated here:
I think we should NOT use the
ERROR
logging level in these two cases because:I would reserve the
ERROR
level for things the SysAdmin should investigate. Otherwise, we will add a lot of noise to the logs.There could be errors if the reason is there was something wrong in the code even when the request was well-formed.
I would use the
WARNING
level only for the UDP case if we want to detect "bad" application use. However, I would do it via metrics instead of logs. For example, we might detect a non-normal number of "error with connection ID" responses and investigate it, but we first should assume it's just a harmful use of the application.In conclusion, reserve "ERROR" levels only for unexpected things the SysAdmin should investigate.
What do you thing @da2ce7?
The text was updated successfully, but these errors were encountered: