mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 02:17:26 +00:00
Add central logging config in serena.__init__
This commit is contained in:
1 parent
1b895e7d90
commit
dd734f8478
1 file changed
+12
@@ -21,3 +21,15 @@ def serena_version() -> str:
|
||||
except:
|
||||
pass
|
||||
return version
|
||||
|
||||
|
||||
def _init_log_configuration() -> None:
|
||||
from sensai.util import logging
|
||||
|
||||
def _configure() -> None:
|
||||
logging.getLogger("PIL").setLevel(logging.WARNING)
|
||||
|
||||
logging.set_configure_callback(_configure)
|
||||
|
||||
|
||||
_init_log_configuration()
|
||||
Reference in new issue
Block a user