Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into becca/indexeddb-arr…
Browse files Browse the repository at this point in the history
…ay-types
  • Loading branch information
RebeccaMahany committed Jul 24, 2024
2 parents d5ea5b8 + ddb2181 commit 4ec0de3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ee/katc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ func (kst *katcSourceType) UnmarshalJSON(data []byte) error {
}
}

func (kst *katcSourceType) String() string {
if kst == nil {
return ""
}
return kst.name
}

// rowTransformStep defines an operation performed against a row of data
// returned from a source. The `name` is the identifier parsed from the
// JSON KATC config.
Expand Down
2 changes: 1 addition & 1 deletion ee/katc/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func newKatcTable(tableName string, cfg katcTableConfig, slogger *slog.Logger) (
// Add extra fields to slogger
k.slogger = slogger.With(
"table_name", tableName,
"table_type", cfg.SourceType,
"table_type", cfg.SourceType.String(),
)

return &k, columns
Expand Down

0 comments on commit 4ec0de3

Please sign in to comment.