Add audit logging with weekly rotation
This commit is contained in:
2
main.py
2
main.py
@@ -8,6 +8,7 @@ from services.alerts import monitor_resources, monitor_smart
|
||||
from services.metrics import MetricsStore, start_sampler
|
||||
from services.queue import worker as queue_worker
|
||||
from services.notify import notify
|
||||
from services.audit import AuditMiddleware
|
||||
import state
|
||||
import handlers.menu
|
||||
import handlers.status
|
||||
@@ -29,6 +30,7 @@ async def notify_start():
|
||||
|
||||
|
||||
async def main():
|
||||
dp.update.outer_middleware(AuditMiddleware(cfg))
|
||||
state.DOCKER_MAP.clear()
|
||||
state.DOCKER_MAP.update(await discover_containers(cfg))
|
||||
if cfg.get("docker", {}).get("watchdog", True):
|
||||
|
||||
Reference in New Issue
Block a user