From 9d91d32d823fe0002e92408c0d07574be8b2b845 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 3 Jan 2022 18:26:26 +0100 Subject: [PATCH] typo: Low capital in some JSON field names in log/audit output (#14020) Use a low capital in some fields in JSON log/audit output to follow other fields names. --- internal/logger/message/audit/entry.go | 2 +- internal/logger/message/log/entry.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logger/message/audit/entry.go b/internal/logger/message/audit/entry.go index 54ac3bcff..b2286800b 100644 --- a/internal/logger/message/audit/entry.go +++ b/internal/logger/message/audit/entry.go @@ -32,7 +32,7 @@ const Version = "1" // ObjectVersion object version key/versionId type ObjectVersion struct { ObjectName string `json:"objectName"` - VersionID string `json:"VersionId,omitempty"` + VersionID string `json:"versionId,omitempty"` } // Entry - audit entry logs. diff --git a/internal/logger/message/log/entry.go b/internal/logger/message/log/entry.go index a8cd95262..7edd3037a 100644 --- a/internal/logger/message/log/entry.go +++ b/internal/logger/message/log/entry.go @@ -25,7 +25,7 @@ import ( // ObjectVersion object version key/versionId type ObjectVersion struct { ObjectName string `json:"objectName"` - VersionID string `json:"VersionId,omitempty"` + VersionID string `json:"versionId,omitempty"` } // Args - defines the arguments for the API.