fix: suppress startup log noise (~350 lines → ~30)

- Suppress migration logger to WARNING during startup (main.py)
- Remove debug logs from get_traffic_packages() leaking before structlog init
- Downgrade handler registration logs to debug (start.py)
- Remove duplicate section headers from migration orchestrator
This commit is contained in:
Fringg
2026-02-16 09:34:17 +03:00
parent 25e8c9f8fc
commit 8a6650e57c
4 changed files with 18 additions and 21 deletions
+1 -7
View File
@@ -2141,14 +2141,9 @@ class Settings(BaseSettings):
packages = []
config_str = self.TRAFFIC_PACKAGES_CONFIG.strip()
logger.debug('CONFIG STRING', config_str=config_str)
if not config_str:
logger.debug('CONFIG EMPTY, USING FALLBACK')
return self._get_fallback_traffic_packages()
logger.debug('PARSING CONFIG...')
for package_config in config_str.split(','):
package_config = package_config.strip()
if not package_config:
@@ -2167,11 +2162,10 @@ class Settings(BaseSettings):
except ValueError:
continue
logger.debug('PARSED packages from config', packages_count=len(packages))
return packages if packages else self._get_fallback_traffic_packages()
except Exception as e:
logger.info('ERROR PARSING CONFIG', error=e)
logger.warning('ERROR PARSING CONFIG', error=e)
return self._get_fallback_traffic_packages()
def is_version_check_enabled(self) -> bool: