summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kim <dkim@gitlab.com>2020-04-03 17:02:01 +1030
committerDavid Kim <dkim@gitlab.com>2020-04-03 17:02:01 +1030
commit12c6711f321dd4b0acf507041cf05fbaa623e29e (patch)
tree4d73014b7909cc622a6d066008533ca7fcee5ec2
parent1af1245ec4a9fc330a7d4979a55a5fee1aca82cb (diff)
downloadgitlab-shell-12c6711f321dd4b0acf507041cf05fbaa623e29e.tar.gz
Change git command logging keys to be be snake cased
-rw-r--r--internal/command/shared/commandlogger/commandlogger.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/command/shared/commandlogger/commandlogger.go b/internal/command/shared/commandlogger/commandlogger.go
index 017eb11..cc357eb 100644
--- a/internal/command/shared/commandlogger/commandlogger.go
+++ b/internal/command/shared/commandlogger/commandlogger.go
@@ -9,11 +9,11 @@ import (
func Log(command string, repository *pb.Repository, response *accessverifier.Response, protocol string) {
fields := log.Fields{
"command": command,
- "glProjectPath": repository.GlProjectPath,
- "glRepository": repository.GlRepository,
- "userId": response.UserId,
- "userName": response.Username,
- "gitProtocol": protocol,
+ "gl_project_path": repository.GlProjectPath,
+ "gl_repository": repository.GlRepository,
+ "user_id": response.UserId,
+ "username": response.Username,
+ "git_protocol": protocol,
}
log.WithFields(fields).Info("executing git command")