Skip to content

Commit

Permalink
fix(data-files): Fixed logging paths for packaging and clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
acederberg committed Sep 13, 2024
1 parent 50eadb8 commit a95177a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/captura/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def from_env(v: str, default: str | None = None, *, prefix: bool = True):

PATH_STATIC = from_env("STATIC", Path.app("static"))
PATH_LOGS = from_env("LOGS", Path.base("logs"))
PATH_CONFIG_LOG = from_env("LOGS_CONFIG", Path.base("logging.yaml"))
PATH_CONFIG_LOG = from_env("LOGS_CONFIG", Path.app("logging.yaml"))

PLUGINS_USE = from_env("PLUGINS_USE", "1") == "1"
VERBOSE = from_env("VERBOSE", "0") != "0"
Expand Down
1 change: 0 additions & 1 deletion src/simulatus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
from simulatus.mk import Mk, combos
from simulatus.reports import ReportController

util.setup_logging(util.Path.base("logging.test.yaml"))
logger = util.get_logger(__name__)

# =========================================================================== #
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def resolve_config_captura(pytestconfig: pytest.Config) -> PytestConfig:
logger.debug("Loading application configuration.")
app = AppConfig.model_validate(
{
"logging_configuration_path": util.Path.base("logging.test.yaml"),
"logging_configuration_path": util.Path.base("tests/logging.yaml"),
}
)

Expand Down
File renamed without changes.

0 comments on commit a95177a

Please sign in to comment.