From 69cdfc5dd062a066d0e96a3d4bc31c5d21bcc226 Mon Sep 17 00:00:00 2001 From: "Park, Chang Sun" Date: Fri, 9 Aug 2024 17:29:36 +0900 Subject: [PATCH] [Security] Refactor gitMutex key naming in chaoscenter/graphql/server/pkg/gitops/git-lock.go (#4810) * fix: gitMutex key naming in chaoscenter/graphql/server/pkg/gitops/git-lock.go Signed-off-by: ParkChangSun * fix: log key in chaoscenter/graphql/server/pkg/gitops/git-lock.go Signed-off-by: ParkChangSun * fix: log key in chaoscenter/graphql/server/pkg/gitops/git-lock.go Signed-off-by: ParkChangSun --------- Signed-off-by: ParkChangSun Co-authored-by: Saranya Jena Co-authored-by: Amit Kumar Das --- chaoscenter/graphql/server/pkg/gitops/git-lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaoscenter/graphql/server/pkg/gitops/git-lock.go b/chaoscenter/graphql/server/pkg/gitops/git-lock.go index 5b0b063d3bf..583ef8a7941 100644 --- a/chaoscenter/graphql/server/pkg/gitops/git-lock.go +++ b/chaoscenter/graphql/server/pkg/gitops/git-lock.go @@ -26,7 +26,7 @@ func (g *GitMutexLock) Lock(repo string, branch *string) { g.mapMutex.Unlock() temp.Lock() - log.Info("acquired LOCK : ", key) + log.Info("acquired LOCK") } // Unlock releases the lock on particular project or repo @@ -39,7 +39,7 @@ func (g *GitMutexLock) Unlock(repo string, branch *string) { temp := g.gitMutex[key] g.mapMutex.Unlock() temp.Unlock() - log.Info("release LOCK : ", key) + log.Info("release LOCK") } // NewGitLock returns a instance of GitMutexLock