Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
9b7610fe
Commit
9b7610fe
authored
2 months ago
by
Semyon Krestyaninov
Committed by
Pavel Antonov
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
В логирующую middleware сервиса ролей добавлена middleware для логирования действий
parent
af35c57f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/templates/middleware/middleware.tmpl
+1
-1
1 addition, 1 deletion
assets/templates/middleware/middleware.tmpl
pkg/roles/middleware/middleware.go
+1
-1
1 addition, 1 deletion
pkg/roles/middleware/middleware.go
with
2 additions
and
2 deletions
assets/templates/middleware/middleware.tmpl
+
1
−
1
View file @
9b7610fe
...
...
@@ -14,7 +14,7 @@ func WithLog(s {{.Interface.Type}}, logger *zap.Logger, log_access bool) {{.Inte
if log_access {
s = AccessLoggingMiddleware(logger)(s)
}
{{- if (has $serviceName (list "Items" "Collections") ) }}
{{- if (has $serviceName (list "Items" "Collections"
"Spaces" "Roles"
) ) }}
s = LoggingMiddleware(logger)(s)
{{ else }}
s = ErrorLoggingMiddleware(logger)(s)
...
...
This diff is collapsed.
Click to expand it.
pkg/roles/middleware/middleware.go
+
1
−
1
View file @
9b7610fe
...
...
@@ -21,7 +21,7 @@ func WithLog(s roles.Roles, logger *zap.Logger, log_access bool) roles.Roles {
if
log_access
{
s
=
AccessLoggingMiddleware
(
logger
)(
s
)
}
s
=
Error
LoggingMiddleware
(
logger
)(
s
)
s
=
LoggingMiddleware
(
logger
)(
s
)
s
=
RecoveringMiddleware
(
logger
)(
s
)
return
s
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment