mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Information should be logged at debug level
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
96df08999f
commit
d66a689c5c
1 changed files with 8 additions and 8 deletions
16
noxfile.py
16
noxfile.py
|
@ -368,15 +368,15 @@ def _run_with_coverage(session, *test_cmd, env=None):
|
|||
|
||||
if sitecustomize_dir:
|
||||
try:
|
||||
session.log(
|
||||
"Discovered salt-factories coverage 'sitecustomize.py' path: "
|
||||
f"{sitecustomize_dir.relative_to(REPO_ROOT)}"
|
||||
)
|
||||
relative_sitecustomize_dir = sitecustomize_dir.relative_to(REPO_ROOT)
|
||||
except ValueError:
|
||||
session.log(
|
||||
"Discovered salt-factories coverage 'sitecustomize.py' path: "
|
||||
f"{sitecustomize_dir}"
|
||||
)
|
||||
relative_sitecustomize_dir = sitecustomize_dir
|
||||
log_msg = f"Discovered salt-factories coverage 'sitecustomize.py' path: {relative_sitecustomize_dir}"
|
||||
try:
|
||||
session.debug(log_msg)
|
||||
except AttributeError:
|
||||
# Older nox
|
||||
session.log(log_msg)
|
||||
python_path_env_var = os.environ.get("PYTHONPATH") or None
|
||||
if python_path_env_var is None:
|
||||
python_path_env_var = str(sitecustomize_dir)
|
||||
|
|
Loading…
Add table
Reference in a new issue