diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-15 13:59:03 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-18 15:05:40 +0300 |
commit | 3325e4553b54ec597b8f3a3c4006a9cb28a2eb2b (patch) | |
tree | 197192667cf17889fa1bab7fd842448b5253e9b2 /internal/praefect/verifier.go | |
parent | bdc3d567f4c6ad96898d41dd4e66af13401847d6 (diff) |
global: Replace `logrus.Fields` with a wrapper type
Introduce our own wrapper type for the `logrus.Fields` type. This allows
us to get rid of the logrus import in many places and thus is another
step towards getting rid of the `logrus` dependency altogether in our
code base.
Diffstat (limited to 'internal/praefect/verifier.go')
-rw-r--r-- | internal/praefect/verifier.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/praefect/verifier.go b/internal/praefect/verifier.go index 5c6684e70..66df1153b 100644 --- a/internal/praefect/verifier.go +++ b/internal/praefect/verifier.go @@ -293,7 +293,7 @@ func (v *MetadataVerifier) updateMetadata(ctx context.Context, results []verific successfullyVerifieds[i] = result.error == nil if result.error != nil { - v.log.WithFields(logrus.Fields{ + v.log.WithFields(log.Fields{ "repository_id": result.job.repositoryID, "replica_path": result.job.replicaPath, "virtual_storage": result.job.virtualStorage, @@ -307,7 +307,7 @@ func (v *MetadataVerifier) updateMetadata(ctx context.Context, results []verific } if len(logRecords) > 0 { - v.log.WithFields(logrus.Fields{ + v.log.WithFields(log.Fields{ "perform_deletions": v.performDeletions, "replicas": logRecords, }).Info("removing metadata records of non-existent replicas") |