Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

fix(cli): configure logging after imports so ontosight doesn't override level

David Li69f623cd25cf
diff --git a/hyperextract/cli/cli.py b/hyperextract/cli/cli.py
index 6e0d647..468c540 100644
--- a/hyperextract/cli/cli.py
+++ b/hyperextract/cli/cli.py
@@ -59,10 +59,13 @@ def main(
is_eager=True,
),
):
+ # Configure logging after all imports complete so dependency loggers
+ # (e.g. ontosight) don't override our level settings.
if verbose:
configure_logging(level="DEBUG")
ctx.obj = {"verbose": True}
- """Hyper-Extract CLI - Transform document into knowledge-abstract."""
+ else:
+ configure_logging()
if version:
from . import __version__
diff --git a/hyperextract/utils/logging.py b/hyperextract/utils/logging.py
index 855e44d..c39ec36 100644
--- a/hyperextract/utils/logging.py
+++ b/hyperextract/utils/logging.py
@@ -92,6 +92,4 @@ def set_log_level(level: str) -> None:
logging.getLogger().setLevel(level_value)
-configure_logging(level="WARNING")
-
__all__ = ["get_logger", "configure_logging", "set_log_level"]