From 4d562ef0688801f8be0dcb851e974fd0d21064ca Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 29 Mar 2018 16:45:34 +0100 Subject: [PATCH] lib: don't count periodic/modifier txns in Journal debug output --- hledger-lib/Hledger/Data/Journal.hs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hledger-lib/Hledger/Data/Journal.hs b/hledger-lib/Hledger/Data/Journal.hs index 722c693ff..8e62a0a52 100644 --- a/hledger-lib/Hledger/Data/Journal.hs +++ b/hledger-lib/Hledger/Data/Journal.hs @@ -119,22 +119,16 @@ instance Show Journal where show j | debugLevel < 3 = printf "Journal %s with %d transactions, %d accounts" (journalFilePath j) - (length (jtxns j) + - length (jmodifiertxns j) + - length (jperiodictxns j)) + (length $ jtxns j) (length accounts) | debugLevel < 6 = printf "Journal %s with %d transactions, %d accounts: %s" (journalFilePath j) - (length (jtxns j) + - length (jmodifiertxns j) + - length (jperiodictxns j)) + (length $ jtxns j) (length accounts) (show accounts) | otherwise = printf "Journal %s with %d transactions, %d accounts: %s, commodity styles: %s" (journalFilePath j) - (length (jtxns j) + - length (jmodifiertxns j) + - length (jperiodictxns j)) + (length $ jtxns j) (length accounts) (show accounts) (show $ jinferredcommodities j)