From 28d8e29be287de13e1f2d06581e0dfabb6ee1592 Mon Sep 17 00:00:00 2001 From: Victor Pfautz Date: Wed, 17 Apr 2024 02:14:52 -0700 Subject: [PATCH] Log result size PiperOrigin-RevId: 625608957 --- binary/proto/proto.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binary/proto/proto.go b/binary/proto/proto.go index 0066d2f7..7568afc0 100644 --- a/binary/proto/proto.go +++ b/binary/proto/proto.go @@ -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" @@ -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