From 9e23e8d6219c56b2eb466082269f774f7335fa71 Mon Sep 17 00:00:00 2001 From: Red S Date: Wed, 12 Jun 2024 02:31:55 -0700 Subject: [PATCH] fix: #28, downgrade "using default config" to a DEBUG message --- beancount_reds_plugins/effective_date/effective_date.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beancount_reds_plugins/effective_date/effective_date.py b/beancount_reds_plugins/effective_date/effective_date.py index d1320bf..8923db9 100644 --- a/beancount_reds_plugins/effective_date/effective_date.py +++ b/beancount_reds_plugins/effective_date/effective_date.py @@ -49,8 +49,8 @@ def build_config(config): if config: holding_accts = literal_eval(config) if not holding_accts: - # print to stderr - print("Using default config", file=sys.stderr) + if DEBUG: + print("effective_date: Using default config", file=sys.stderr) holding_accts = { 'Expenses': {'earlier': 'Liabilities:Hold:Expenses', 'later': 'Assets:Hold:Expenses'}, 'Income': {'earlier': 'Assets:Hold:Income', 'later': 'Liabilities:Hold:Income'}, @@ -85,10 +85,10 @@ def effective_date(entries, options_map, config): filtered_entries.append(entry) # if DEBUG: - # print("------") + # print("effective_date: ------") # for e in interesting_entries: # printer.print_entry(e) - # print("------") + # print("effective_date: ------") # add a link to each effective date entry. this gets copied over to the newly created effective date # entries, and thus links each set of effective date entries