prom icon indicating copy to clipboard operation
prom copied to clipboard

logs are largely useless in development

Open Jaymon opened this issue 4 years ago • 0 comments

I couldn't remember why we always set the error level to critical in our products, so I set it to warning and ran the tests, and started getting logged errors like:

[E] no such table: ...
Traceback (most recent call last):
  File ".../prom/interface/base.py", line 626, in _query
    cur.execute(query_str, query_args)
OperationalError: no such table: ...

And now I remember, these would only really be errors if prom decided it couldn't create the table or the field, so these should maybe be downgraded to info, so we can set logging to warning and actually be able to use warning because there would be signal instead of just noise.

Jaymon avatar Oct 08 '19 22:10 Jaymon