summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-11-22 16:06:46 +0100
committerGitHub <noreply@github.com>2023-11-22 16:06:46 +0100
commit3cf7f7b8000d788d596865de2c2cb8bc52e651b9 (patch)
tree76ab8e483d964861b3338c486ac4c5468633478b /lib
parentd7e756a26b9450d7f4e94dac1747a729011e2140 (diff)
downloadspack-3cf7f7b8000d788d596865de2c2cb8bc52e651b9.tar.gz
spack-3cf7f7b8000d788d596865de2c2cb8bc52e651b9.tar.bz2
spack-3cf7f7b8000d788d596865de2c2cb8bc52e651b9.tar.xz
spack-3cf7f7b8000d788d596865de2c2cb8bc52e651b9.zip
ASP-based solver: don't emit spurious debug output (#41218)
When improving the error message, we started #showing in the answer set a lot more symbols - but we forgot to suppress the debug messages warning about UNKNOWN SYMBOLs
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/asp.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index 806bbac28f..e3068e7db4 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -1013,14 +1013,6 @@ class PyclingoDriver:
# record the possible dependencies in the solve
result.possible_dependencies = setup.pkgs
- # print any unknown functions in the model
- for sym in best_model:
- if sym.name not in ("attr", "error", "opt_criterion"):
- tty.debug(
- "UNKNOWN SYMBOL: %s(%s)"
- % (sym.name, ", ".join([str(s) for s in intermediate_repr(sym.arguments)]))
- )
-
elif cores:
result.control = self.control
result.cores.extend(cores)
@@ -2799,9 +2791,11 @@ class SpecBuilder:
r"^.*_propagate$",
r"^.*_satisfies$",
r"^.*_set$",
+ r"^dependency_holds$",
r"^node_compiler$",
r"^package_hash$",
r"^root$",
+ r"^track_dependencies$",
r"^variant_default_value_from_cli$",
r"^virtual_node$",
r"^virtual_root$",