scapy
scapy copied to clipboard
A lot of noise in sentry if cache hit is missing
Brief description
We use scapy together with rq. At the beginning of scapy work it couldn't find any files in the cache directory (i.e. manufdb, ethertypes, services), so the scapy_data_cache logs warning with trace-back details. correspondingly Sentry captures such events which looks a bit weird. Indeed, cache hit missing is an expected regular event. Thus, I'd propose to reduce the log level for this case to, say INFO or even DEBUG and without any exception info.
Scapy version
2.6.0rc1
Python version
3.9.2
Operating system
Linux 5.10.0-29
Additional environment information
No response
How to reproduce
- Remove the cached
manufdbfile (e.g. byrm -f ~/.cache/scapy/manufdb); - Set up python log level at maximum to
WARNINGorINFO; - invoke the load_manuf() function (or load_ethertypes(), or load_services());
- Get log warning with exception info;
Actual result
log warning message with exception info;
Expected result
I'd expect in this case log message at level INFO or DEBUG
Related resources
No response