Add proper structured logging #2

Merged
SaschaFuksa merged 1 commit from feature/proper-logging into master 2026-04-17 19:15:15 +00:00
Owner

Summary

Replaces all print() statements with Python's logging module per the open issue.

Changes

  • New file: src/logging_config.py — shared logging setup, reads from settings.yaml
  • settings.yaml: added logging section (level, format, date_format)
  • src/main.py: startup logs (binary/model path checks) -> logger.info
  • src/api/routes.py: transcription flow logs -> logger.debug (avail/model checks) / logger.info (success) / logger.error (failures)
  • src/transcription/whisper_service.py: all whisper CLI debug output -> logger.debug
  • src/routing/dispatcher.py: mock/tasch output -> logger.info, failures -> logger.error

Log levels used

  • DEBUG: Whisper CLI args, file checks, return codes
  • INFO: Startup checks, transcription success, output dispatches
  • ERROR: Transcription failures, output errors

Closes #1

## Summary Replaces all print() statements with Python's logging module per the open issue. ### Changes - **New file**: src/logging_config.py — shared logging setup, reads from settings.yaml - **settings.yaml**: added logging section (level, format, date_format) - **src/main.py**: startup logs (binary/model path checks) -> logger.info - **src/api/routes.py**: transcription flow logs -> logger.debug (avail/model checks) / logger.info (success) / logger.error (failures) - **src/transcription/whisper_service.py**: all whisper CLI debug output -> logger.debug - **src/routing/dispatcher.py**: mock/tasch output -> logger.info, failures -> logger.error ### Log levels used - DEBUG: Whisper CLI args, file checks, return codes - INFO: Startup checks, transcription success, output dispatches - ERROR: Transcription failures, output errors Closes #1
Replace all print() statements with Python's logging module.
Each module now uses its own logger (getLogger(__name__)).
Logging is configurable via settings.yaml (level, format, date_format).
Appropriate log levels: INFO for startup/events, DEBUG for dev details, ERROR for failures.
SaschaFuksa deleted branch feature/proper-logging 2026-04-18 08:23:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Tasch/whisper-transcribe!2
No description provided.