Skip to content

Commit

Permalink
update golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Sep 23, 2024
1 parent b3e4280 commit 544003a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions indexer/postgres/tests/testdata/init_schema.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
INFO: Starting indexing
INFO: Starting indexer
target_name: postgres
type: postgres
DEBUG: Creating enum type
sql: CREATE TYPE "test_my_enum" AS ENUM ('a', 'b', 'c');
DEBUG: Creating enum type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
INFO: Starting indexing
INFO: Starting indexer
target_name: postgres
type: postgres
DEBUG: Creating enum type
sql: CREATE TYPE "test_my_enum" AS ENUM ('a', 'b', 'c');
DEBUG: Creating enum type
Expand Down
4 changes: 2 additions & 2 deletions schema/indexer/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func StartIndexing(opts IndexingOptions) (IndexingTarget, error) {
logger = logutil.NoopLogger{}
}

logger.Info("Starting indexer manager")
logger.Info("Starting indexing")

cfg, err := unmarshalIndexingConfig(opts.Config)
if err != nil {
Expand All @@ -107,7 +107,7 @@ func StartIndexing(opts IndexingOptions) (IndexingTarget, error) {
return IndexingTarget{}, fmt.Errorf("indexer type %q not found", targetCfg.Type)
}

logger.Info("Starting indexer", "target", targetName, "type", targetCfg.Type)
logger.Info("Starting indexer", "target_name", targetName, "type", targetCfg.Type)

if targetCfg.Filter != nil {
return IndexingTarget{}, fmt.Errorf("indexer filter options are not supported yet")
Expand Down

0 comments on commit 544003a

Please sign in to comment.