Add type check for cache
This commit is contained in:
parent
f1ba0e79c1
commit
0ea822f7a0
10 changed files with 35 additions and 13 deletions
|
@ -1,7 +1,12 @@
|
|||
import logging
|
||||
|
||||
error_log = logging.getLogger("judge.errors")
|
||||
debug_log = logging.getLogger("judge.debug")
|
||||
|
||||
|
||||
def log_exception(msg):
|
||||
error_log.exception(msg)
|
||||
|
||||
|
||||
def log_debug(category, data):
|
||||
debug_log.info(f"{category}: {data}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue