scapy icon indicating copy to clipboard operation
scapy copied to clipboard

A lot of noise in sentry if cache hit is missing

Open ygavenchuk opened this issue 1 year ago • 0 comments

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

  1. Remove the cached manufdb file (e.g. by rm -f ~/.cache/scapy/manufdb);
  2. Set up python log level at maximum to WARNING or INFO;
  3. invoke the load_manuf() function (or load_ethertypes(), or load_services());
  4. 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

ygavenchuk avatar Aug 27 '24 15:08 ygavenchuk