File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,22 @@ func logHandler() iris.Handler {
141
141
log .Operator = profile .Name
142
142
log .Operation = method
143
143
144
+ //handle ldap operate
145
+ if strings .Contains (path ,"ldap" ) {
146
+ if strings .Contains (path ,"import" ) {
147
+ log .Operation = "import"
148
+ }
149
+ if strings .Contains (path ,"sync" ) {
150
+ log .Operation = "sync"
151
+ }
152
+ if strings .Contains (path ,"connect" ) {
153
+ log .Operation = "testConnect"
154
+ }
155
+ if strings .Contains (path ,"login" ) {
156
+ log .Operation = "testLogin"
157
+ }
158
+ }
159
+
144
160
pathResource := strings .Split (path , "/" )
145
161
if strings .HasPrefix (currentPath , "clusters/:name" ) {
146
162
if len (pathResource ) < 3 {
Original file line number Diff line number Diff line change @@ -269,6 +269,10 @@ const system_logs = {
269
269
clusters_repos : "集群仓库" ,
270
270
imagerepos : "镜像仓库" ,
271
271
ldap : "LDAP" ,
272
+ sync : "同步" ,
273
+ import : "导入" ,
274
+ testConnect : "测试" ,
275
+ testLogin : "测试" ,
272
276
}
273
277
274
278
You can’t perform that action at this time.
0 commit comments