mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Cluster: Improve API endpoint and CLI command logs
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user