aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2020-12-22 07:50:27 -0500
committerJonathan Amsterdam <jba@google.com>2020-12-22 15:56:02 +0000
commit6d83cfa043e7955cc441d6377e5bac84ec7c59c5 (patch)
tree5d90b2726f07b98a9cb9e27cd911bb280b05630c /internal/postgres/insert_module.go
parentb248e483e53d7d3c91ebae021d1589c94f94999f (diff)
downloadgo-x-pkgsite-6d83cfa043e7955cc441d6377e5bac84ec7c59c5.tar.xz
internal/postgres,fetch: remove unnecessary logging
Change-Id: Ibe744a8c687159529a33642615f653ddaed2f65b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/279459 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module.go')
-rw-r--r--internal/postgres/insert_module.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go
index d18074b3..21df64fc 100644
--- a/internal/postgres/insert_module.go
+++ b/internal/postgres/insert_module.go
@@ -303,7 +303,6 @@ func (pdb *DB) insertUnits(ctx context.Context, db *database.DB, m *internal.Mod
return err
}
- log.Debugf(ctx, "insertUnits(%q): read %d paths", m.ModulePath, len(pathToID))
// Insert any unit paths that we don't already have.
var pathValues []interface{}
for _, u := range m.Units {
@@ -312,7 +311,6 @@ func (pdb *DB) insertUnits(ctx context.Context, db *database.DB, m *internal.Mod
}
}
if len(pathValues) > 0 {
- log.Debugf(ctx, "insertUnits(%q): upserting %d paths", m.ModulePath, len(pathValues))
// Insert data into the paths table.
pathCols := []string{"path"}
uniquePathCols := []string{"path"}