Cluster: Improve API endpoint and CLI command logs

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-21 16:51:24 +02:00
parent 5b7ea44eb5
commit 53f7643583
8 changed files with 22 additions and 22 deletions

View File

@@ -174,7 +174,7 @@ func ClusterGetNode(router *gin.RouterGroup) {
// Audit get access.
event.AuditInfo(
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "get node %s", status.Succeeded},
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "get node", "%s", status.Succeeded},
s.RefID,
uuid,
)
@@ -262,7 +262,7 @@ func ClusterUpdateNode(router *gin.RouterGroup) {
}
event.AuditInfo(
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "node %s", status.Updated},
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "node", "%s", status.Updated},
s.RefID,
uuid,
)
@@ -321,7 +321,7 @@ func ClusterDeleteNode(router *gin.RouterGroup) {
}
event.AuditWarn(
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "node %s", status.Deleted},
[]string{ClientIP(c), "session %s", string(acl.ResourceCluster), "node", "%s", status.Deleted},
s.RefID,
uuid,
)