Skip to content

Commit

Permalink
tags: don't log when no tags (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Dec 6, 2024
1 parent 8e87695 commit e868b3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import (
"context"
"log/slog"

"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
)

func GetTags(ctx context.Context, catalogPool *pgxpool.Pool, flowName string) (map[string]string, error) {
var tags map[string]string

err := catalogPool.QueryRow(ctx, "SELECT tags FROM flows WHERE name = $1", flowName).Scan(&tags)
if err != nil {
if err != nil && err != pgx.ErrNoRows {
slog.Error("error getting flow tags", slog.Any("error", err))
return nil, err
}
Expand Down

0 comments on commit e868b3b

Please sign in to comment.