View Logs, path filter, and bugfixes (v2.6.2)#44
Merged
ttlequals0 merged 6 commits intomainfrom Mar 20, 2026
Merged
Conversation
Add persistent log storage in PostgreSQL with background-threaded DatabaseLogHandler, log API endpoints with filtering/pagination/download/ purge, and a frontend log viewer modal with live polling. Add path dropdown filter on scan results page backed by configured SCAN_PATHS. New files: log_routes.py, log_handler.py, log_context.py New models: LogEntry, AppConfig New migration: v2.6.0 (log_entries + app_configs tables)
Add server_default=func.now() to AppConfig timestamp columns and ALTER TABLE SET DEFAULT in migration for existing deployments.
…lters, add 47 tests (v2.6.1) - Fix streaming generator losing Flask app context on /api/logs/download (stream_with_context) - Add missing rate limit to /api/logs/runs endpoint - Restrict purge to documented filters only (scan_id, before, level) - Add 47 tests covering log models, context vars, handler, API routes, path filter, and log cleanup - Register log_bp in test conftest - Fix missing newline at EOF in mobile.css
DatabaseLogHandler background writer thread does not survive fork() into Celery worker child processes. Added worker_process_init signal handler in celery_config.py to create a fresh handler per child.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Version
2.6.2
Test plan