more verbose Amount debug output at level 6+

This commit is contained in:
Simon Michael 2014-04-02 04:57:33 -07:00
parent 874c467789
commit 21575ed47b

View File

@ -117,9 +117,9 @@ amountstyle = AmountStyle L False 0 '.' ',' []
instance Show Amount where
show _a@Amount{..}
-- debugLevel < 3 = showAmountWithoutPrice a
-- debugLevel < 6 = showAmount a
| debugLevel < 9 =
-- debugLevel < 2 = showAmountWithoutPrice a
-- debugLevel < 3 = showAmount a
| debugLevel < 6 =
printf "Amount {acommodity=%s, aquantity=%s, ..}" (show acommodity) (show aquantity)
| otherwise = --showAmountDebug a
printf "Amount {acommodity=%s, aquantity=%s, aprice=%s, astyle=%s}" (show acommodity) (show aquantity) (showPriceDebug aprice) (show astyle)