File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
services/storage/src/simcore_service_storage Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2525 str
2626] = '%a %t "%r" %s %b [%Dus] "%{Referer}i" "%{User-Agent}i"'
2727
28+ _LOG_LEVEL_STEP = logging .CRITICAL - logging .ERROR
29+ _NOISY_LOGGERS = (
30+ "aiobotocore" ,
31+ "aio_pika" ,
32+ "aiormq" ,
33+ "botocore" ,
34+ "sqlalchemy" ,
35+ )
2836_logger = logging .getLogger (__name__ )
2937
3038
@@ -68,6 +76,13 @@ def create(settings: Settings) -> web.Application:
6876 if settings .STORAGE_MONITORING_ENABLED :
6977 setup_monitoring (app , app_name , version = f"{ version } " )
7078
79+ # keep mostly quiet noisy loggers
80+ quiet_level : int = max (
81+ min (logging .root .level + _LOG_LEVEL_STEP , logging .CRITICAL ), logging .WARNING
82+ )
83+ for name in _NOISY_LOGGERS :
84+ logging .getLogger (name ).setLevel (quiet_level )
85+
7186 return app
7287
7388
You can’t perform that action at this time.
0 commit comments