Skip to content

Commit

Permalink
show hydra dumped results in debug mode (iterative#9460)
Browse files Browse the repository at this point in the history
* show hydra dumped results in debug mode

* update hydra composition trace msg
  • Loading branch information
Dave Berenbaum authored May 18, 2023
1 parent ecb71c8 commit 45c5c83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dvc/utils/hydra.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from pathlib import Path
from typing import TYPE_CHECKING, List

Expand All @@ -9,6 +10,9 @@
from dvc.types import StrPath


logger = logging.getLogger(__name__)


def compose_and_dump(
output_file: "StrPath",
config_dir: str,
Expand Down Expand Up @@ -44,6 +48,9 @@ def compose_and_dump(
dumper(output_file, OmegaConf.to_object(cfg))
else:
Path(output_file).write_text(OmegaConf.to_yaml(cfg), encoding="utf-8")
logger.trace( # type: ignore[attr-defined]
"Hydra composition enabled. Contents dumped to %s:\n %s", output_file, cfg
)


def apply_overrides(path: "StrPath", overrides: List[str]) -> None:
Expand Down

0 comments on commit 45c5c83

Please sign in to comment.