cmd/ismdb: less noisy

This commit is contained in:
2026-11-05 15:36:01 -05:00
parent 56bd5b460d
commit 6ca27e79bf
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ func insert(ctx context.Context, db *sqlitemigration.Pool, log *slog.Logger, car
// if there's something wrong with the db.
if err := insertCareer(conn, log, career, trainerID); err != nil {
code := sqlite.ErrCode(err)
if code == sqlite.ResultConstraintUnique {
log.InfoContext(ctx, "already loaded")
if code == sqlite.ResultConstraintPrimaryKey {
log.DebugContext(ctx, "already loaded")
return nil
}
return err
+1 -1
View File
@@ -47,7 +47,7 @@ func main() {
ok := 0
for _, n := range fs {
log := log.With(slog.String("file", n))
log.Info("begin")
log.Debug("begin")
f, err := os.Open(n)
if err != nil {
log.Error("open", slog.Any("err", err))