Open DeeJay opened 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")
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?
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?