Skip to content

Commit

Permalink
Log result size
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625608957
  • Loading branch information
vpasdf authored and copybara-github committed Apr 17, 2024
1 parent 979384a commit 28d8e29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binary/proto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"google.golang.org/protobuf/proto"
"github.com/google/osv-scalibr/converter"
"github.com/google/osv-scalibr/detector"
"github.com/google/osv-scalibr/log"

"github.com/google/osv-scalibr/extractor"
"github.com/google/osv-scalibr/extractor/language/java/archive"
Expand Down Expand Up @@ -118,6 +119,8 @@ func write(filePath string, outputProto proto.Message, ft *fileType) error {
}
}

log.Infof("Marshaled result proto has %d bytes", len(p))

f, err := os.Create(filePath)
if err != nil {
return err
Expand Down

0 comments on commit 28d8e29

Please sign in to comment.