Skip to content

Complete SCIOT-000 and SCIOT-029: Separate logics + structured logging#40

Open
lbedogni wants to merge 4 commits into
mainfrom
feature/scit-029-structured-logging
Open

Complete SCIOT-000 and SCIOT-029: Separate logics + structured logging#40
lbedogni wants to merge 4 commits into
mainfrom
feature/scit-029-structured-logging

Conversation

@lbedogni

@lbedogni lbedogni commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Changes

SCIOT-000 - Separate logics

  • All 8 tasks verified complete and marked DONE

SCIOT-029 - Replace print statements with structured logging

  • request_handler.py: 4 print calls → logger.info/warning
  • http_server.py: 2 print calls → logger.info/error
  • edge_initialization.py: 3 print calls → logger.info/debug
  • profiler.py: 3 print calls → logger.info/error
  • model_manager.py: Added Optional type hints for delay config
  • settings.yaml: Added logging.level and logging.format configuration
  • logger/log.py: Enhanced configure_logger_from_settings() with explicit log level control

All files pass Python syntax validation.

Luca Bedogni added 4 commits July 2, 2026 07:20
SCIOT-000: Mark as DONE (all 8 tasks verified complete)

SCIOT-029: Replace print() with structured logging
- request_handler.py: 4 print calls → logger.info/warning
- http_server.py: 2 print calls → logger.info/error
- edge_initialization.py: 3 print calls → logger.info/debug
- profiler.py: 3 print calls → logger.info/error
- model_manager.py: Added Optional type hints
- settings.yaml: Added logging.level and logging.format config
- logger/log.py: Enhanced configure_logger_from_settings() with level support
- Added offloading_algo.ema_alpha to settings.yaml (default: 0.5)
- Added validation for ema_alpha in 0.0-1.0 range in config.py
- Added get_ema_alpha() helper in commons.py
- Replaced hardcoded alpha values in request_handler.py and model_manager.py
- Added unit tests for EMA alpha configuration validation
- Enhanced settings.yaml with detailed comments on EMA alpha values and tuning
- Added tuning guide section in OFFLOADING_DECISION_EVENTS.md
- Test logger handler setup
- Test configuration loading from settings.yaml
- Test CustomFormatter file info and indentation support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant