chore: make verbose less verbose

main
sudo pacman -Syu 2022-11-07 00:31:03 +07:00
parent 33663ca1cb
commit 0bf8b52ffd
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ func (p *populator) Insert(ctx context.Context, tableName string, numberRecord i
}
if p.verbose {
fmt.Printf("Index: [%d], Query: [%s], LenArgs: [%d]\n", i, queryInsert, len(args))
fmt.Printf("Index: [%d]\n", i)
}
if !p.dryRun {
@ -186,7 +186,7 @@ func (p *populator) InsertBatch(ctx context.Context, tableName string, numberRec
queryInsert, argsInsert := generateQueryArgsInsertFn(numberRecordEachBatch)
if p.verbose {
fmt.Printf("Index: [%d], Query: [%s], LenArgs: [%d]\n", i, queryInsert, len(argsInsert))
fmt.Printf("Index: [%d]\n", i)
}
if !p.dryRun {
@ -201,7 +201,7 @@ func (p *populator) InsertBatch(ctx context.Context, tableName string, numberRec
queryInsert, argsInsert := generateQueryArgsInsertFn(numberRecordLastBatch)
if p.verbose {
fmt.Printf("Index: [%d], Query: [%s], LenArgs: [%d]\n", numberBatch-1, queryInsert, len(argsInsert))
fmt.Printf("Index: [%d]\n", numberBatch-1)
}
if !p.dryRun {