fix logger x partition
This commit is contained in:
8
main.py
8
main.py
@@ -31,7 +31,7 @@ def cli(ctx):
|
||||
)
|
||||
def setup(create_schema):
|
||||
"""Setup PostgreSQL database."""
|
||||
setup_logger(__name__)
|
||||
setup_logger("") # Configure root logger to show all module logs
|
||||
|
||||
if not create_schema:
|
||||
click.echo("Usage: python main.py setup --create-schema")
|
||||
@@ -89,7 +89,7 @@ def migrate():
|
||||
)
|
||||
def full(table, dry_run, resume, partition, parallel):
|
||||
"""Perform full migration of all data."""
|
||||
setup_logger(__name__)
|
||||
setup_logger("") # Configure root logger to show all module logs
|
||||
|
||||
tables = ["RAWDATACOR", "ELABDATADISP"] if table == "all" else [table]
|
||||
|
||||
@@ -178,7 +178,7 @@ def incremental(table, dry_run):
|
||||
)
|
||||
def benchmark(iterations, output):
|
||||
"""Run performance benchmarks comparing MySQL and PostgreSQL."""
|
||||
setup_logger(__name__)
|
||||
setup_logger("") # Configure root logger to show all module logs
|
||||
|
||||
try:
|
||||
click.echo("Running performance benchmarks...")
|
||||
@@ -194,7 +194,7 @@ def benchmark(iterations, output):
|
||||
@cli.command()
|
||||
def info():
|
||||
"""Show configuration information."""
|
||||
setup_logger(__name__)
|
||||
setup_logger("") # Configure root logger to show all module logs
|
||||
|
||||
settings = get_settings()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user