Skip to content

Commit

Permalink
fix: improve debug message
Browse files Browse the repository at this point in the history
Signed-off-by: chanyeong <jcy030896@naver.com>
  • Loading branch information
jcy0308 committed Nov 16, 2024
1 parent c9464db commit 24490c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commitserver/commit/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ func (s *Service) handleCommitRequest(ctx context.Context, logCtx *log.Entry, r
return out, "", fmt.Errorf("failed to checkout target branch: %w", err)
}

logCtx.Debug("Checking out if hydrated already")
logCtx.Debug("Checking if hydrated already")
metadataPath := path.Join(dirPath, "hydrator.metadata")
fileData, err := os.ReadFile(metadataPath)
if err == nil {
var hydratorMetadata hydratorMetadataFile
json.Unmarshal(fileData, &hydratorMetadata)
if hydratorMetadata.DrySHA == r.DrySha {
logCtx.Debug("Already Hydrated")
logCtx.WithField("drySHA", r.DrySha).Debug("Already Hydrated")
return "", r.DrySha, nil
}
}
Expand Down

0 comments on commit 24490c4

Please sign in to comment.