Skip to content

Commit

Permalink
Added default value to HASURA_POSTGRES_HOST; Added hasura config log …
Browse files Browse the repository at this point in the history
…output
  • Loading branch information
k-karuna committed Aug 30, 2024
1 parent 206ee71 commit 14ef1d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/dipdup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ hasura:
rest: true
source:
name: default
database_host: ${HASURA_POSTGRES_HOST}
database_host: ${HASURA_POSTGRES_HOST:-db}
use_prepared_statements: true
isolation_level: read-committed

Expand Down
3 changes: 3 additions & 0 deletions cmd/metadata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"encoding/json"
"os"
"os/signal"
"runtime"
Expand Down Expand Up @@ -87,6 +88,8 @@ func main() {
}

if cfg.Hasura != nil {
hasuraConfig, _ := json.Marshal(cfg.Hasura)
log.Info().RawJSON("HasuraConfig", hasuraConfig).Msg("")
if err := hasura.Create(ctx, hasura.GenerateArgs{
Config: cfg.Hasura,
DatabaseConfig: cfg.Database,
Expand Down

0 comments on commit 14ef1d3

Please sign in to comment.