Skip to content

Commit

Permalink
feat(ingest): add check server-config command (#10990)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jul 25, 2024
1 parent 1fa7998 commit 5a2fc3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions metadata-ingestion/src/datahub/cli/check_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,13 @@ def extract_sql_agg_log(query_log_file: str, output: Optional[str]) -> None:
logger.info(f"Extracted {len(queries)} queries to {output}")
else:
click.echo(json.dumps(queries, indent=2))


@check.command()
def server_config() -> None:
"""Print the server config."""
graph = get_default_graph()

server_config = graph.get_server_config()

click.echo(pprint.pformat(server_config))

0 comments on commit 5a2fc3c

Please sign in to comment.