refact: use only server

This commit is contained in:
2025-08-27 13:28:50 +02:00
parent cf8a37f183
commit 2934224787
39 changed files with 6843 additions and 1223 deletions

View File

@@ -79,4 +79,17 @@ class LoggingService:
message=message,
target_id=server_id,
target_name=server_name
)
@staticmethod
def log_host_action(db: Session, action: str, host_id: int, host_name: str, success: bool, message: str):
"""Log Proxmox host actions (create/update/delete/wake/shutdown)"""
LoggingService.log_action(
db=db,
action_type="host",
action=action,
success=success,
message=message,
target_id=host_id,
target_name=host_name
)