Skip to content

Commit 56fb1bc

Browse files
committed
log solver preferences only at deafening
1 parent b9e2049 commit 56fb1bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cabal-install/src/Distribution/Client/Dependency.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import Distribution.Types.DependencySatisfaction
130130
( DependencySatisfaction (..)
131131
)
132132
import Distribution.Verbosity
133-
( normal
133+
( normal, deafening
134134
)
135135
import Distribution.Version
136136

@@ -212,9 +212,9 @@ showDepResolverParams p =
212212
(("\n " ++) . showLabeledConstraint)
213213
(depResolverConstraints p)
214214
++ "\npreferences: "
215-
++ concatMap
216-
(("\n " ++) . showPackagePreference)
217-
(depResolverPreferences p)
215+
++ if depResolverVerbosity p >= deafening
216+
then concatMap (("\n " ++) . showPackagePreference) ((depResolverPreferences p))
217+
else "\n ... increase verbosity to see"
218218
++ "\nstrategy: "
219219
++ show (depResolverPreferenceDefault p)
220220
++ "\nreorder goals: "

0 commit comments

Comments
 (0)