LIM configured no logging at all, so the instruction fetcher had no trail to follow. Adds a rotating file handler on the root logger plus two owner-only admin pages. - Admin > Logs: filter by level, source and text; tracebacks kept with their error; auto-refresh, raw download, rotated-file browsing and rotate-now - Admin > Logs > Brickset API calls: every outbound call recorded with method, params, caller, duration, result count and error, plus daily quota accounting (only getSets counts) and a comparison against getKeyUsageStats - New owner concept (services/ownership.py): a single account, distinct from is_admin, since these pages expose other admins activity. Defaults to the first admin; flask owner show/set to change - Services now log through module loggers; retention setting and pruning for call records - New CLI: flask owner show/set, flask logs path/prune - New table brickset_api_calls, created automatically at boot; LOG_* env vars, /data/logs in Docker
11 lines
418 B
Python
11 lines
418 B
Python
from app.routes.auth import auth_bp
|
|
from app.routes.main import main_bp
|
|
from app.routes.sets import sets_bp
|
|
from app.routes.instructions import instructions_bp
|
|
from app.routes.moc import bp as moc_bp
|
|
from app.routes.instruction_fetch import instruction_fetch_bp
|
|
from app.routes.logs import logs_bp
|
|
|
|
__all__ = ['auth_bp', 'main_bp', 'sets_bp', 'instructions_bp', 'moc_bp',
|
|
'instruction_fetch_bp', 'logs_bp']
|