-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy path.labkit_logging_todo.yml
More file actions
33 lines (32 loc) · 1.21 KB
/
.labkit_logging_todo.yml
File metadata and controls
33 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# LabKit Logging Field Standardization TODO
# AUTO-GENERATED FILE. DO NOT EDIT MANUALLY.
#
# This file tracks deprecated logging fields that need to be migrated to
# standard fields defined in gitlab.com/gitlab-org/labkit/v2/fields.
# Each offense represents a file using a deprecated field name.
#
# How to fix:
# Replace the string literal with the constant from the fields package.
# e.g. log.WithField("source_ip", ...) → log.WithField(fields.RemoteIP, ...)
#
# Adding offenses when an immediate fix is not possible:
# go get gitlab.com/gitlab-org/labkit/v2/cmd/validate-log-fields
# go run gitlab.com/gitlab-org/labkit/v2/cmd/validate-log-fields -update-todo
# go mod tidy
#
# Regenerate entire TODO:
# Delete this file, then run the command above.
---
offenses:
- callsite: common/build.go
deprecated_field: error
standard_field: fields.ErrorMessage
- callsite: executors/docker/docker.go
deprecated_field: error
standard_field: fields.ErrorMessage
- callsite: executors/docker/machine/provider.go
deprecated_field: duration
standard_field: fields.DurationS
- callsite: network/retry_requester.go
deprecated_field: duration
standard_field: fields.DurationS