Skip to content

Commit

Permalink
Add some v(1) logging around lerc-shallow mode.
Browse files Browse the repository at this point in the history
Minor logging changes.

Bug: b/352587768
Test: manual
Change-Id: I07287ee709ff8b6106b3ba9502c738d0628ba901
GitOrigin-RevId: f115c236139b8ef3a9608437a1b7806c367a4c6c
  • Loading branch information
MikeS-rec authored and copybara-github committed Jul 22, 2024
1 parent 13741c7 commit cdc8f56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/reproxy/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ func (a *action) populateCommandIO(ctx context.Context, ip *inputprocessor.Input
func (a *action) addDepsFileOutput() {
if a.depsFile != "" {
a.cmd.OutputFiles = append(a.cmd.OutputFiles, pathtranslator.RelToWorkingDir(a.cmd.ExecRoot, a.cmd.WorkingDir, a.depsFile))
} else {
log.Warningf("%v: no depsFile to process", a.cmd.Identifiers.ExecutionID)
}
}

Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/reproxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,8 @@ func (s *Server) runLERC(ctx context.Context, a *action) {
return
}
log.V(1).Infof("%v: Inputs: %v", a.cmd.Identifiers.ExecutionID, a.cmd.InputSpec.Inputs)
log.V(1).Infof("%v: Outputs: %v", a.cmd.Identifiers.ExecutionID, a.cmd.OutputFiles)
log.V(1).Infof("%v: dFile: %v", a.cmd.Identifiers.ExecutionID, a.dFile)
// Since this is LERC mode, add dependency file outputs to the command since we will
// generate it locally.
a.addDepsFileOutput()
Expand Down

0 comments on commit cdc8f56

Please sign in to comment.