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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
03fda18d
Commit
03fda18d
authored
1 year ago
by
Semyon Krestyaninov
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/PRXS-951-1964-FixZapCustomFields' into feature/PRXS-951-1961-ZapIntergration
parents
e00f45e5
14ae294f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
log/zap/field.go
+2
-2
2 additions, 2 deletions
log/zap/field.go
with
2 additions
and
2 deletions
log/zap/field.go
+
2
−
2
View file @
03fda18d
...
@@ -31,7 +31,7 @@ func Event(event string) zap.Field {
...
@@ -31,7 +31,7 @@ func Event(event string) zap.Field {
}
}
// ObjectID возвращает поле и устанавливает передаваемый аргумент в качестве идентификатора объекта в формате ObjectId.
// ObjectID возвращает поле и устанавливает передаваемый аргумент в качестве идентификатора объекта в формате ObjectId.
// Поддерживает типы в формате ObjectId: string, map[string]any, системные объекты.
// Поддерживает типы в формате ObjectId:
id.Descriptor,
string, map[string]any, системные объекты.
func
ObjectID
(
v
any
)
zap
.
Field
{
func
ObjectID
(
v
any
)
zap
.
Field
{
oid
,
err
:=
id
.
NewObjectId
(
v
)
oid
,
err
:=
id
.
NewObjectId
(
v
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -41,7 +41,7 @@ func ObjectID(v any) zap.Field {
...
@@ -41,7 +41,7 @@ func ObjectID(v any) zap.Field {
}
}
// CallerID возвращает поле и устанавливает передаваемый аргумент в качестве "вызывающего" в формате ObjectId.
// CallerID возвращает поле и устанавливает передаваемый аргумент в качестве "вызывающего" в формате ObjectId.
// Поддерживает типы в формате ObjectId: string, map[string]any, системные объекты.
// Поддерживает типы в формате ObjectId:
id.Descriptor,
string, map[string]any, системные объекты.
func
CallerID
(
v
any
)
zap
.
Field
{
func
CallerID
(
v
any
)
zap
.
Field
{
oid
,
err
:=
id
.
NewObjectId
(
v
)
oid
,
err
:=
id
.
NewObjectId
(
v
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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