less debug output from some low-level functions
This commit is contained in:
		
							parent
							
								
									f409f72899
								
							
						
					
					
						commit
						2844333857
					
				| @ -19,7 +19,6 @@ import Hledger.Data.Account | |||||||
| import Hledger.Data.Journal | import Hledger.Data.Journal | ||||||
| import Hledger.Data.Posting | import Hledger.Data.Posting | ||||||
| import Hledger.Query | import Hledger.Query | ||||||
| import Hledger.Utils |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| instance Show Ledger where | instance Show Ledger where | ||||||
| @ -44,10 +43,8 @@ ledgerFromJournal :: Query -> Journal -> Ledger | |||||||
| ledgerFromJournal q j = nullledger{ljournal=j'', laccounts=as} | ledgerFromJournal q j = nullledger{ljournal=j'', laccounts=as} | ||||||
|   where |   where | ||||||
|     (q',depthq)  = (filterQuery (not . queryIsDepth) q, filterQuery queryIsDepth q) |     (q',depthq)  = (filterQuery (not . queryIsDepth) q, filterQuery queryIsDepth q) | ||||||
|     j'  =  |     j'  = filterJournalPostingAmounts (filterQuery queryIsSym q) $ -- remove amount parts which the query's sym: terms would exclude | ||||||
|         dbg "ledgerFromJournal1" $ |           filterJournalPostings q' j | ||||||
|         filterJournalPostingAmounts (filterQuery queryIsSym q) $ -- remove amount parts which the query's sym: terms would exclude |  | ||||||
|         filterJournalPostings q' j |  | ||||||
|     as  = accountsFromPostings $ journalPostings j' |     as  = accountsFromPostings $ journalPostings j' | ||||||
|     j'' = filterJournalPostings depthq j' |     j'' = filterJournalPostings depthq j' | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -304,7 +304,7 @@ reportSpans opts q j = (reportspan, spans) | |||||||
| 
 | 
 | ||||||
|     -- if there's a reporting interval, calculate the report periods |     -- if there's a reporting interval, calculate the report periods | ||||||
|     -- which enclose the requested span |     -- which enclose the requested span | ||||||
|     spans = dbg "spans" $ splitSpan (intervalFromOpts opts) requestedspan' |     spans = splitSpan (intervalFromOpts opts) requestedspan' | ||||||
| 
 | 
 | ||||||
|     -- the overall report span encloses the periods |     -- the overall report span encloses the periods | ||||||
|     reportspan = DateSpan |     reportspan = DateSpan | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user