mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
more verbose Amount debug output at level 6+
This commit is contained in:
parent
874c467789
commit
21575ed47b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user