[debug] codeintel: print stderr of pg_dump (#38803)

This commit is contained in:
Noah S-C 2022-07-14 05:27:39 -07:00 committed by GitHub
parent 79220eb190
commit 76342deaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ func monitor(ctx context.Context, repoNames []string, uploads []uploadMeta) erro
out, err := exec.Command("pg_dump", "-a", "--column-inserts", "--table='lsif_uploads*'").CombinedOutput()
if err != nil {
fmt.Printf("Failed to dump: %s", err.Error())
fmt.Printf("Failed to dump: %s\n%s", err.Error(), out)
} else {
fmt.Printf("DUMP:\n\n%s\n\n\n", out)
}