Skip to content

Commit

Permalink
add logs to sireneUL handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Josquin Cornec committed Apr 26, 2024
1 parent 65fe4a8 commit ee10019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/ops/imports/sireneUL.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package imports

import (
"context"
"fmt"
"log/slog"
"strings"

Expand All @@ -15,6 +16,13 @@ import (
// InsertSireneUL insère des trucs rapport aux sirene mais je sais pas trop quoi
func InsertSireneUL(ctx context.Context) error {
sireneULParser := goSirene.SireneULParser(ctx, viper.GetString("source.sireneULPath"))

go func() {
for sireneUL := range sireneULParser {
fmt.Println(sireneUL)
}
}()

initialCount := 0
copyFromSireneUL := CopyFromSireneUL{
SireneULParser: sireneULParser,
Expand Down

0 comments on commit ee10019

Please sign in to comment.