fix logger x partition

This commit is contained in:
2026-01-05 14:00:29 +01:00
parent a7d2d501fb
commit 931fec0959

View File

@@ -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()