pimoroni / phew

MIT License
204 stars 44 forks source link

logging.log(level, text) will accept any random string for 'level'. #51

Open DeeJay opened 1 year ago

DeeJay commented 1 year ago

logging.log(level, text) will accept any random string for 'level'.

So it is possible to write log("gribble", "this is not a valid logging level")

Perhaps for consistency only values of 'level' that are defined as valid logging_types should be acceptable?