From 21575ed47b75392838306999dec7c7820678fd39 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 2 Apr 2014 04:57:33 -0700 Subject: [PATCH] more verbose Amount debug output at level 6+ --- hledger-lib/Hledger/Data/Amount.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hledger-lib/Hledger/Data/Amount.hs b/hledger-lib/Hledger/Data/Amount.hs index 19de1f864..6b50c8d88 100644 --- a/hledger-lib/Hledger/Data/Amount.hs +++ b/hledger-lib/Hledger/Data/Amount.hs @@ -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)